I used a RelativeLayout for something similar. Specify the listview in xml using @android:id/list as the id, and then define the button with the correct layout settings to position it below the listview (and align it to the bottom of the screen). Giving the button the following property: android:layout_below="@android:id/list", should help get it into place.
Then in code, use a class which extends ListActivity, call setContentView(R.layout.my_layout), use findViewById to find the listView and set an adapter or something to populate it. On May 31, 3:48 pm, Mike Lanin <[email protected]> wrote: > I want to create layout like: > ______________ > | | > | Here | > | scrolls | > | the | > | ListView | > | | > |____________ | > | here is the | > | button | > |____________ | > > But it shows me either only Button or only the List. What should I do > to make them be together? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

