Fixed footer not displaying the bottom-most list item

Posted by Mohit Deshpande on Stack Overflow See other posts from Stack Overflow or by Mohit Deshpande
Published on 2010-12-23T23:52:32Z Indexed on 2010/12/23 23:54 UTC
Read the original article Hit count: 393

Filed under:
|
|
|

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>

Which causes this problem:
The problem
The listview item (outlined in red) is behind the fixed footer and cannot be used. Any solutions?

© Stack Overflow or respective owner

Related posts about android

Related posts about Xml