It shows me only button on top and no ListView
On 31 май, 19:00, Mark Murphy <mmur...@commonsware.com> wrote:
> Mike Lanin 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?
>
> If you are using LinearLayout, set android:layout_height="0px" and
> android:layout_weight="1" on the ListView, and set
> android:layout_height="wrap_content" on the Button. That will give the
> Button enough space to show itself and give the ListView the rest of the
> space.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---