开发者

How to strench child elements in LinearLayout

开发者 https://www.devze.com 2023-03-11 11:21 出处:网络
I have LinearLayout, and I am trying to make the child elements to be 100%. so far I have this [E1] [E2] [E3]

I have LinearLayout, and I am trying to make the child elements to be 100%. so far I have this

[E1] [E2] [E3] 

while I want them to be

[E1]  
[E2]  
[E3] 

what properties开发者_Go百科 should I change?? I tried several such as layout_width


Set LinearLayout orientation to vertical

android:orientation="vertical"

And make all elements fill parent.


You should change orientation property of your LinearLayout to vertical

0

精彩评论

暂无评论...
验证码 换一张
取 消