TreKing's solution works if you want the Button to scroll with the rest of the contents of the ListView. If you want the Button to stay fixed on the bottom of the screen:
Step #1: Create a RelativeLayout Step #2: Put the ListView and the Button in the RelativeLayout Step #3: Anchor the Button to the bottom of the RelativeLayout using android:layout_alignParentBottom="true" Step #4: Fill the rest with the ListView using android:layout_alignParentTop="true" and android:layout_above="@+id/whatever_you_decide_call_your_button" Or: Step #1: Create a LinearLayout Step #2: Put a ListView in the LinearLayout with android:layout_height="0px" and android:layout_weight="1" Step #3: Put a Button after the ListView in the LinearLayout with no android:layout_weight attribute On Thu, Oct 21, 2010 at 1:46 PM, Gabriel Huie <ghui...@gmail.com> wrote: > Hi I wanted to know how to create a listActivity on Droid but on the > bottom have a bottom to do whatever i want so like in a section of its > own. Recently i tried merging two layouts with one being the row one > for list Activity and a button but all i get are a list with buttons > next to each line on the list so how can we do a list with a space on > the bottom just for a button? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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