gvdjcenegb
New Member
I have two layouts. Actually 5, 3 vertical one below another and in the middle one I have 2 layouts side by side. I need them to be fixed size, so they do change. But as soon as I place a button i one of them, they change size, as you can see on the picture below. How to make them not change? Anyway, here's my code and pictures.
\[code\]<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" androidrientation="vertical" android:weightSum="20" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" androidrientation="vertical" android:layout_weight="3" > </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="15" androidrientation="horizontal" > <LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent" androidrientation="vertical" android:layout_weight="1" > </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent" androidrientation="vertical" android:layout_weight="1" > </LinearLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" androidrientation="vertical" android:layout_weight="2" > </LinearLayout></LinearLayout>\[/code\]