Android: How to divide LinearLayout in two parts of exactly the same size? -


i have following layout:

<linearlayout   xmlns:android="http://schemas.android.com/apk/res/android"   android:layout_width="fill_parent"   android:layout_height="fill_parent"   android:background="#ffffff"   android:orientation="horizontal"   android:weightsum="2">      <fragment xmlns:android="http://schemas.android.com/apk/res/android"     android:name="ch.lexs.view.lawlist"     android:layout_width="wrap_content"     android:layout_height="fill_parent"     android:layout_weight="1">     </fragment>      <fragment xmlns:android="http://schemas.android.com/apk/res/android"     android:name="ch.lexs.view.paragraphlist"     android:layout_width="wrap_content"     android:layout_height="fill_parent"     android:layout_weight="1">     </fragment>  </linearlayout> 

my intention divide linearlayout in 2 parts same size. thought can done using weight. second fragment way smaller. doing wrong?

try setting widths of both "fill_parent".


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -