Wednesday, June 9, 2010

Re: [android-developers] LinearLayout/TextView sizing

On Tue, Jun 8, 2010 at 10:26 PM, Matt (preinvent) <matt@preinvent.com> wrote:
The TextView on the right has variable width text, and I want the TextView on the left to adjust its size accordingly to as much width as possible.

This sounds like a job for weighs. Try setting the right textview weight to 0 ("take up the room you need") and the one on the left to 1 ("take the rest of the available space").

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

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment