Here is my XML layout:
<?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">
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</ListView>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_alignParentBottom="true">
<EditText xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight="1" />
<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight="2" />
</LinearLayout>
</RelativeLayout>
What causes this problem:

The listview element (indicated in red) is located behind a fixed footer and cannot be used. Any solutions?
UPDATE:
I would rather point out changes in my code to fix this problem, and then some explanation. But this is only my preference.
source
share