I have a ListView that is appearing behind two buttons. I'd like the ListView to fill the area below the buttons. I've tried the solutions in this link:Android Layout with ListView and Buttons and Listview with button below not working properly . However, it is not working. Can you tell me how to keep theListView below the buttons?
Here is my code:\[code\]<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" > <ListView android:id="@+id/listview" android:layout_width="fill_parent" android:layout_below="@id/layoutButtons" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:weightSum=".50" /> <LinearLayout android:id="@+id/layoutButtons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" > <Button android:id="@+id/btnLogout" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight=".70" android:text="left" /> <Button android:id="@+id/btnMessage" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight=".30" android:text="right" /> </LinearLayout></RelativeLayout>\[/code\]