How to set spinner default text in android?
You should create custom ArrayAdapter with a String for your desired text in its constructor. Then, you should switch the first element of your array with your default text, and after the user click on the spinner it should switch back to the original array. Save this answer.
How to set value in spinner dynamically in android?
ArrayAdapter<String>dataAdapter = new ArrayAdapter<String>(this,android. R. layout. simple_spinner_dropdown_item);