Matt,

One way you could do this is to make it a TableLayout with a TableRow,
and then use the attribute android:stretchcolumns="1" as per:

http://developer.android.com/guide/topics/ui/layout-objects.html#tablelayout


On Wed, Jun 9, 2010 at 1:26 PM, Matt (preinvent) <[email protected]> wrote:
> I'm trying to accomplish something fairly simple but struggling to get
> the right combination of layoutWidth/weight to make this work.
>
> I have a horizontally oriented LinearLayout with width fill_parent
> containing two TextViews.  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.  Essentially, the right
> TextView must always show all of its contents and the left TextView
> should extend as far as possible to the edge of the TextView on the
> right.
>
> Any guidance as to how to do this?
>
> Thanks!
>
> --
> 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

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