1. Check out our companion app, Forums for Android! Download from Google Play

Spinner stretches hideously

Discussion in 'Application Development' started by tsuand, Jul 1, 2009.

  1. tsuand

    tsuand New Member
    Thread Starter

    Jul 1, 2009
    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:


    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 (Text):
    1. <Spinner
    2. android:layout_height="wrap_content"
    3. android:layout_weight="2"
    4. android:layout_width="fill_parent"
    5. android:id="@+id/spinnerField"
    6. android:prompt="@string/searchSpinnerFieldPrompt" />


Share This Page