[android-developers] Re: Finding a ViewGroup within another ViewGroup

2009-01-27 Thread Romain Guy
Just use findViewById(R.id.layout_2) :) On Tue, Jan 27, 2009 at 2:47 PM, steele johnson jsal...@gmail.com wrote: Does anyone know how to find a ViewGroup within another ViewGroup at runtime? If I have a Layout file (xml layout), how can I get a reference to a nested Layout? Example:

[android-developers] Re: Finding a ViewGroup within another ViewGroup

2009-01-27 Thread steele johnson
Hmm, layout_2 doesn't appear in the id list. On Jan 27, 5:49 pm, Romain Guy romain...@google.com wrote: Just use findViewById(R.id.layout_2) :) On Tue, Jan 27, 2009 at 2:47 PM, steele johnson jsal...@gmail.com wrote: Does anyone know how to find a ViewGroup within another ViewGroup at

[android-developers] Re: Finding a ViewGroup within another ViewGroup

2009-01-27 Thread Romain Guy
Then you should rebuild your project to force the update of R.java. On Tue, Jan 27, 2009 at 2:52 PM, steele johnson jsal...@gmail.com wrote: Hmm, layout_2 doesn't appear in the id list. On Jan 27, 5:49 pm, Romain Guy romain...@google.com wrote: Just use findViewById(R.id.layout_2) :) On

[android-developers] Re: Finding a ViewGroup within another ViewGroup

2009-01-27 Thread steele johnson
Ah doh! That was it. I suppose I should switch on 'Build Automatically'. Thanks for the help.. you guys are quick. ;) On Jan 27, 5:55 pm, Romain Guy romain...@google.com wrote: Then you should rebuild your project to force the update of R.java. On Tue, Jan 27, 2009 at 2:52 PM, steele