Saturday, February 4, 2012

Re: [android-developers] how to examine resources in R programatically - Ignoring InnerClasses attribute

At 01:04 PM 2/4/2012, you wrote:
>On Sat, Feb 4, 2012 at 3:57 PM, Ray Tayek <rtayek@ca.rr.com> 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.

yes, that's what i am tring now. i think i can get everything i need from that.

thanks


---
co-chair http://ocjug.org/

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate