Let's hope there is a better solution! After all, setting layout_width
IS the layout manager's job.

On Jul 9, 11:09 am, Mark Murphy <[email protected]> wrote:
> On Fri, Jul 9, 2010 at 10:13 AM, PingoWingo <[email protected]> wrote:
> > Is there a way to get all the children views of a layout, from the
> > Java code so that I can loop through them and set an attribute?
>
> getChildCount() and getChildAt()
>
> > Specifically, I'd like to set the "layout_width" based on the screen
> > size.
>
> Unless you are creating your own layout manager class, there may be a
> better solution for whatever it is you are really trying to
> accomplish.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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