Android Spinner Dont Draw Selected Item
I have a spinner with three items in it - one
- two
- three
&
Solution 1:
Write a custom SpinnerAdapter
which returns the items from the menu excluding the selected one.
Solution 2:
You can try to set the promt in the xml to "One" like this:
<Spinner android:id="@+id/spinnerTest"
android:layout_marginLeft="50px"
android:layout_width="fill_parent"
android:drawSelectorOnTop="true"
android:layout_marginTop="5dip"
android:prompt="@string/SelectOne"
android:layout_marginRight="30px"
android:layout_height="35px"
/>
Then you should override the onItemClick methode and set the text of your variable in "On nothing selected".
Post a Comment for "Android Spinner Dont Draw Selected Item"