Just a piece of advice, when you have so many seemingly identical
textviews and spinners, it may be convenient for you to put the
attrebutes in a style and associate the styles with the spinner and
the textview. That way, you can change the layout and settings of all
spinners and textviews in one place. Saves you some typing too.....


On Dec 30, 1:12 am, Brion Emde <[email protected]> wrote:
> At least one of your Spinners has android:layout_height="fill_parent".
> that could mess you up.
>
> On Dec 29, 12: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

Reply via email to