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?
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.
Normally I use android:layout_weight="1" for this. Also you can use a table layout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With