• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Spinner stretches hideously

tsuand

Lurker
Hey everyone, I have a quick question that I know has an easy answer, but I can't for the life of me figure it out.

For some reason, my spinners keep stretching vertically and look just godawful. They look normal when editing the layout, but once they're populated with some entries from an array, well... see for yourselves:

badspinner.jpg


No setting seems to affect it one way or the other. What's going on and how can I correct it? Any help would be greatly appreciated!

Edit: Oh, right, and here is the XML I'm using:

Code:
<Spinner 
android:layout_height="wrap_content"
android:layout_weight="2"
android:layout_width="fill_parent"
android:id="@+id/spinnerField"
android:prompt="@string/searchSpinnerFieldPrompt" />
 
Back
Top Bottom