Use android:layout_alignParentBottom="true" on the button. Use android:layout_above="..." on the list, where ... is the android:id of the button.
On Tue, Nov 29, 2011 at 8:57 PM, Ren Wen shan <[email protected]> wrote: > Hi, > > I'm trying to make a layout that contains a List and a button. > To make the button on the bottom, I'm using > > android:layout_alignParentBottom="true" > android:gravity="center|bottom" > > in a RelativeView > > > It works fine when the list is short, however, once the length of the list > beyond the screen's length, the list will be hided by the button (as the > attachment shows). > > > What I want are: > 1. Keep the button on bottom > 2. Keep the list "above" the button > 3. Use relative position to keep the program's flexibility > > Could you give some suggestions? > > > API Level = 13 > Hardware: ASUS Eee PAD Transformer > > -- > [email protected] > > -- > 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 Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

