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 <[email protected]> wrote: > Then you should rebuild your project to force the update of R.java. > > > > On Tue, Jan 27, 2009 at 2:52 PM, steele johnson <[email protected]> wrote: > > > Hmm, layout_2 doesn't appear in the id list. > > > On Jan 27, 5:49 pm, Romain Guy <[email protected]> wrote: > >> Just use findViewById(R.id.layout_2) :) > > >> On Tue, Jan 27, 2009 at 2:47 PM, steele johnson <[email protected]> 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: > > >> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > >> > android" > >> > android:id="@+id/layout_1" > >> > android:orientation="vertical" android:layout_width="fill_parent" > >> > android:layout_height="fill_parent"> > > >> > <LinearLayout android:id="@+id/layout_2" > >> > android:orientation="vertical" > >> > android:layout_width="fill_parent" > >> > android:layout_height="370dip" android:background="@color/ > >> > pht_white"> > > >> > </LinearLayout> > >> > </LinearLayout> > > >> > How can I get a reference to layout_2 at runtime? I can't use > >> > findViewById() because there's no integer exposed for the inner > >> > Layout. > > >> > Thanks. > > >> -- > >> Romain Guy > >> Android framework engineer > >> [email protected] > > >> Note: please don't send private questions to me, as I don't have time > >> to provide private support. All such questions should be posted on > >> public forums, where I and others can see and answer them > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

