On Fri, Jul 9, 2010 at 10:13 AM, PingoWingo <joannas...@gmail.com> 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/commonsguy
http://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to