• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Listview with buttons at bottom

ridoy

Lurker
I am newbie in android.I'm designing a listview which code is-

listview.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
     <ListView
            android:id="@android:id/list"
            android:layout_width="fill_parent"
            android:layout_height="0dp"/>

    
        <Button
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:layout_gravity="center_vertical"
            android:text="@string/select_label"
            android:onClick="onDrawSelectorOnTop" />
 
        <Button
            android:layout_width="0dp"
            android:layout_height="fill_parent"
            android:layout_weight="1"
            android:layout_gravity="center_vertical"
            android:text="@string/remember_label"
            android:onClick="onUseSelectorAsBackground" />
    
</LinearLayout>


and the list layout is:

listlayout.xml
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="wrap_content">

    <TextView 
    android:text="@+id/label"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" 
    android:id="@+id/label"
    android:layout_marginLeft="15dp"
    android:layout_marginTop="5dp"
    android:textStyle="bold"
    android:textSize="20px">
    </TextView>

    <CheckBox 
    android:id="@+id/check" 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginLeft="4px"
    android:layout_marginRight="10px" 
    android:layout_alignParentRight="true">
    </CheckBox>

</RelativeLayout>

I want to show 2 buttons at the bottom of the listview.How can i do that?
 
Back
Top Bottom