-1

i want one item in spinner , which discribes for what this spinner is and also i want it to be unSelectable can any budy know how to do this with sample example . For Example first item as selectone and it is unselectable and items to be selected

Thanks in advance .

Sachin Gurnani
  • 2,444
  • 7
  • 36
  • 45

2 Answers2

3

You can set the android:prompt="Select Question" for Spinner.

Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
0

you will get your answer on following link

How to make an Android Spinner with initial text "Select One"

however you have to get subclass of spinner in which you need to maintain 2 adapter internally. One adapter that has the "your description" option, and the other real adapter (with the actual options)

Community
  • 1
  • 1