Hello,

Thanks all for your input.
I actually wanted to know how to grab all the children of a layout-
manager parent so that I can set an attribute programmatically,  In my
case, it was to set the layout_width of each child depending on the
screen size which I assume cannot be determined at the XML level.

If there are better ways, please do let me know.
Otherwise, I will go with Mark's suggestion on using
getChildCount() and getChildAt() methods.

Thanks!

On Jul 15, 5:55 pm, Matt <[email protected]> wrote:
> > what were they thinking when they named this
> > parameter "layout_width"? Doesn't the very name naturally suggest a
> > numeric value measuring the width, rather than rule for deriving that
> > value from elsewhere?
>
> You actually can set the layout_width to a numeric value measuring the
> width.  For example, 100dip, or just 100px, if you wanted.
> FILL_PARENT and WRAP_CONTENT are special cases, corresponding to the
> numbers -1 and -2.
>
> -Matt

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