As Studio LFP said, you try to put buttons in the wrong place.

The layout you have shown in your message represents only one row of
your listview.

Try to add a layout above your listview (<ListView> component) with
your buttons in it.



On Oct 15, 2:03 am, Windy <[email protected]> wrote:
> Hi, I am using relative layout to show a list with checkboxes in each
> row. Now I want to add 3 buttons on the top of this list. how can I do
> so? when I tried to add a button in this layout,the button appeared in
> all the rows of the list.
>
> here is my .xml file :
> <?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:textSize="30px"></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>
>
> Please help me quickly.
> -thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to