I have a problem I have design a spinner and add items(i.e. states) on it. Now I want to show "SELECT STATES" on main Screen only once. When we click on that spinner it will hide this text("SELECT STATES") and should show the list of the states.
Thanks in Advance.
Easy: spinner.setPrompt("Title"); or xml: android:prompt="@string/title"
I don't think it has such attribute, even google uses a textview to show the title in the example: http://developer.android.com/resources/tutorials/views/hello-spinner.html
If you really want to do it that way, you can add the String "SELECT STATES" in the first slot of the list, and then remove it after the first item selection.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With