On Sat, Feb 4, 2012 at 3:57 PM, Ray Tayek <[email protected]> wrote:
>> > i am looking at walking the layout tree.
>>
>> What is a "layout tree"?
>
>
> i think it's what's in your main.xml.

Um, OK. You don't need R to walk that. After you call
setContentView(), call findViewById(android.R.id.content) to get the
ViewGroup that holds your inflated layout. Iterate over its children,
and for those that are themselves ViewGroups, use recursion.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

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