On Fri, Jun 22, 2012 at 4:07 PM, bob <[email protected]> wrote:

> Am I the only one who is continuously baffled by Android layouts?
>
Probably not.

>
> Basically, I have a ListView that's on top of a button.  The button's
> height should be wrap_content.  The ListView height should be whatever's
> left.  Anyone know how to do this?
>
Look at LinearLayout and the weight attribute. In your case, the button
with no weight and the ListView with weight set to 1 will tell the
LinearLayout "give the button the room it needs, the fill the rest with the
ListView.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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

Reply via email to