On Sun, Mar 13, 2011 at 11:09 AM, Jay Bloodworth <[email protected]
> wrote:

> Is there a standard idiom for an Activity to enforce that two of it's child
> views have the same width in cases where a LinearLayout won't do it (like
> two horizontally adjacent buttons)?
>

If you have to horizontally adjacent button in a LinearLayout, you can set
their weights to 1 each, so they both occupy the same amount of space and
collectively use up all the space their parent provides.

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