To get the two spinners you can do (for instance): findViewById(R.id.include03).findViewById(R.id.Spinner01) findViewById(R.id.include04).findViewById(R.id.Spinner01)
On Sun, May 10, 2009 at 9:19 PM, [email protected] <[email protected]> wrote: > > Let's say I have a list of included layouts and I want to access the > widgets in the included layouts...how do I do that? > > ParentLayout > ------------------------------ > <merge xmlns:android="http://schemas.android.com/apk/res/android"> > <LinearLayout > android:id="@+id/LinearLayout01" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:orientation="vertical"> > > <include android:id="@+id/include02" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > layout="@layout/textcombolayout"></include> > > <include android:id="@+id/include03" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > layout="@layout/textcombolayout"></include> > > <include android:id="@+id/include04" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > layout="@layout/textcombolayout"></include> > </LinearLayout> > </merge> > > SubLayout > ---------------------- > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="horizontal" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:padding="6dip"> > > <TextView android:text="TextView01" > android:id="@+id/TextView01" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_alignParentLeft="true" /> > > <Spinner android:id="@+id/Spinner01" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_alignParentRight="true" /> > > </RelativeLayout> > > > > > -- 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 -~----------~----~----~----~------~----~------~--~---

