Android布局部门(Android Layout Division)
我想将屏幕分为两部分,我有一个LinearLayout ,它又包含两个LinearLayouts 。
如何将这两个LinearLayouts分成两个相等的部分?
I want to divide my screen in two parts,I have a LinearLayout and it contains two LinearLayouts again.
How to divide these two LinearLayouts into two equal parts?
最满意答案
只需添加:
android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"他们两个。 相等的layout_weight参数均匀分配空间量。
努力接受你之前的问题的一些答案。
Just add:
android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"to both of them. The layout_weight parameter being equal distributes the amount of space evenly.
Work on accepting some of the answers to your previous questions, as well.
更多推荐
发布评论