I added a spinner to the layout. I want to run validate function on the spinner. If the user doesn't select any item from the spinner, he should see a error message.
Actual behavior
seterror() method doesn't work for spinner.
can't figure the return statement for validate function for spinner.
Expected behavior
I added a spinner to the layout. I want to run validate function on the spinner. If the user doesn't select any item from the spinner, he should see a error message.
Actual behavior
seterror() method doesn't work for spinner. can't figure the return statement for validate function for spinner.
Steps to reproduce the issue