[英]How to strench child elements in LinearLayout
I have LinearLayout, and I am trying to make the child elements to be 100%.我有 LinearLayout,我正在尝试使子元素为 100%。 so far I have this
到目前为止我有这个
[E1] [E2] [E3]
while I want them to be而我希望他们成为
[E1]
[E2]
[E3]
what properties should I change??我应该更改哪些属性? I tried several such as layout_width
我尝试了几个比如 layout_width
Set LinearLayout orientation to vertical将 LinearLayout 方向设置为垂直
android:orientation="vertical"
And make all elements fill parent.并使所有元素填充父元素。
You should change orientation property of your LinearLayout to vertical您应该将 LinearLayout 的方向属性更改为垂直
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.