我想将 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,而不是我的布局。
最佳答案
尝试将 Textview 中的 android:layout_height
更改为 "wrap_content"
。
关于android - 旋转后 TextView 被剪切,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28520048/