If that is the code you are using to fill in each row in a ListView, then that's the wrong place to put the buttons. You want to go to the layout that your ListView is in and add the buttons there.
Steven Studio LFP http://www.studio-lfp.com On Saturday, October 15, 2011 1:03:18 AM UTC-5, Windy 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en