Hi Duey, are you try to use diferents ids for each spinner like android:id="@ +id/spinner1", android:id="@+id/spinner2", etc...?
Greetings, Estiven Restrepo On Dec 29, 2:47 pm, Duey Oxburger <[email protected]> wrote: > Hey All, > > A spinner question: > > I want to have multiple spinners working in the same view. In my > list, the first spinner works, but the others are empty. Here's how my > main.xml looks: > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:padding="10dip" > android:layout_width="fill_parent" > android:layout_height="wrap_content"> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Build your Squad:" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 1:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 2:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > android:layout_height="fill_parent"/> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 3:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 4:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 5:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 6:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 7:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 8:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 9:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > > <TextView > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_marginTop="10dip" > android:text="Unit 10:" > /> > > <Spinner > android:id="@+id/spinner" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:drawSelectorOnTop="true" > android:prompt="@string/planet_prompt" > /> > /> > > </LinearLayout> > > Any thoughts?... > > Thx, > > D -- 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

