I am working on a spinner in which I am getting values of the spinner from the database.
I want to add hint to this spinner...and the problem arising is that I cannot able to add hint to this spinner.
What should I do?...
I am working on a spinner in which I am getting values of the spinner from the database.
I want to add hint to this spinner...and the problem arising is that I cannot able to add hint to this spinner.
What should I do?...
You have to create a costum adapter for your spinner. There are some tutorials on the web:
I think you are trying to make an initial text in spinner. You can do it in many ways
How to make an Android Spinner with initial text “Select One”
Otherwise you can use a button instead of spinner and create a dialog when button clicked
I have developed a little component to get this. Just add a hint text in AutoCompleteTexview and build CompleteSpinner with it