• 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
Jul 1, 2009
1
0
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" />
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones