Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello!
i made a Spinner for choosing sexuality in my application . as you know it has two items "male" and "female". now what should i do if i want to show a title inside of spinner .
i mean , it has to show ("what is your sexuality") and after user touches it , it has two show two items ...
Posted
Comments
Richard MacCutchan 27-Feb-15 10:59am    
That's gender, not "sexuality", which is something completely different.

Assign the title to android:prompt attribute and set the android:spinnerMode to dialog, refer:
http://developer.android.com/reference/android/widget/Spinner.html#attr_android:prompt[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900