Use a RelativeLayout, putting the Button at the bottom and anchoring the ListView to the top of the screen and the top of the Button.
Or, use a LinearLayout, setting the ListView's android:layout_height to 0px and its android:layout_weight to 1, and leaving android:layout_weight off the Button. On Wed, Sep 1, 2010 at 7:15 AM, chetan <[email protected]> wrote: > Hi, > I have created a class extends ListActivity and i want to add a > button at bottom of Listactivity. Can any body tell me how it can be > done. > > Thanks > Chetan Chauhan > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- 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

