I want to show a button at the end of an android list view
How can I achieve this?
i dont want to stick it to the activity bottom using alignparentbottom="true", layout_below does not work for me either.
But i want to show it at the end of list view
Any help would be appricated here comes my code.
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/main_bg">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<ListView android:id="@+id/android:list"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:drawSelectorOnTop="false" android:cacheColorHint="#ff6a00"
android:divider="#ff8f40"
android:dividerHeight="1px"
/>
</LinearLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="50sp"
android:background="#676767"
android:orientation="vertical"
>
<Button android:layout_width="100px" android:layout_height="wrap_content"
android:id="@+id/btnGetMoreResults" android:layout_marginLeft="10px"
android:text="Get more" />
</RelativeLayout>
</RelativeLayout>