how to set width of spinner in android? [closed]
how to set width of the spinner programatically ?
In your layout file
<Spinner
android:id="@+id/spinner"
android:layout_width="200dip"
android:layout_height="fill_parent"
android:prompt="@string/my_spinner"
/>
would give the spinner a width of 200dip
.
精彩评论