在LinearLayout中向左侧添加 View 时是否可以改变方向?
最佳答案
尝试使用 layoutDirection
属性。在您的LinearLayout
中:
android:layoutDirection="rtl"
“rtl”
在本例中表示“从右到左”。
您想要执行的操作的实现将由一个垂直 LinearLayout
和两个水平 LinearLayout
作为其子级组成。
关于android - 在 LinearLayout 中添加 View 时将方向更改为左侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19192380/