请教在屏幕旋转时如何让某一个控件TextView的位置保持不变,就是屏幕上有多个控件,都会随屏幕旋转而变化,我想让其中一个TextView的位置保持不变,不管屏幕旋转到多少角度,它始终在同一个位置,不随屏幕旋转而变。
------解决方案--------------------
只有中心的可以任意旋转不变。
<LinearLayout
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:text="中心字"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
------解决方案--------------------
你可以在
onConfigurationChanged
这个函数回调里 安排你的控件布局
------解决方案--------------------
TextView 位置不变,难道字得倒着?