On Wed, Jul 11, 2012 at 2:24 PM, marcpolo <[email protected]>wrote:

> ViewB.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,
> LayoutParams.MATCH_PARENT, 1));
>

Don't use MATCH_PARENT with weight, leave it as WRAP_CONTENT. The Weight
parameter takes care of it filling the required space.

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