saving . . . saved spinner has been deleted. spinner has been hidden .
spinner
Title
Question
I am getting the correct department if selected but If none of the list item in the department are selected, Iam getting the 1st item of the array as department by default . How to get None/empty as the output if no item is selected 

Android-app-using-Kotlin Adding-spinner-and-Image 06-07 min 20-30 sec 16-05-21, 4:48 p.m. vijaydonkena@gmail.com

Answers:

Hi Vijay,

You can try the below code:

 override fun onNothingSelected(parent: AdapterView<*>?) {
        showToast(message = "Nothing selected")
    }
17-05-21, 5:06 p.m. NirmalaVenkat


Log-in to answer to this question.