I'm trying to create a android layout like:
[####EditText###][Button]
[####listview#####]
For that i'm using weight, but the following xml is giving me something very strang like:
[editText][button][ListView]
Someone know why?
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:background="@drawable/background" android:weightSum="10" > <EditText android:id="@+id/nova_lista" android:inputType="text" android:layout_height="wrap_content" android:layout_width="0dp" android:layout_weight="9" android:hint="@string/new_list_hint"> </EditText> <Button android:id="@+id/nova_lista_botao" android:layout_height="wrap_content" android:layout_width="0dp" android:layout_weight="1" android:text="@string/new_list"/> <ListView android:id="@+id/list_of_lists" android:layout_width="fill_parent" android:layout_height="wrap_content" > </ListView> </LinearLayout> 