<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#dad4c8"
android:gravity="center_horizontal">
<include
android:id="@+id/title_bar"
layout="@layout/title_bar" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/title_bar"
android:id="@+id/txt"
android:hint="Song title" />
<ListView
android:cacheColorHint="#00000000"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/txt"
android:id="@+id/list" />
</RelativeLayout>
Use a LinearLayout and set the ListView's Height to 0dip and give it layout_weight="1"
This will make it autofill any remaining space, causing the internal items of the list view to scroll. Currently the listview is very tall and is being clipped by the bounds of the screen.
Something like this:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#dad4c8"
android:orientation="vertical"
android:gravity="center_horizontal">
<include
android:id="@+id/title_bar"
layout="@layout/title_bar" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/txt"
android:hint="Song title" />
<ListView
android:cacheColorHint="#00000000"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:id="@+id/list" />
</LinearLayout>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With