我想将一个
TextView
旋转90度。这个方法是可行的,但是 TextView 在 y 轴上被“裁剪”了(即裁剪到屏幕宽度,见截图)。我该如何解决这个问题?<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center">
<TextView
android:rotation="90"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="256"
android:textSize="50mm"
android:gravity="center"
android:id="@+id/TextView" />
</LinearLayout>
编辑:
我确定是TextView被裁剪了,而不是我的布局。
android:gravity="center"
并尝试。 - Psypherandroid:textSize
怎么样? - Rami