How to set default value in spinner if nothing is selected in spinner.
So ,guys Please help me in getting out of these error.
Thanks in advance for your reply.
How to set default value in spinner if nothing is selected in spinner.
So ,guys Please help me in getting out of these error.
Thanks in advance for your reply.
You can set the appropriate property of Spinner
i.e android:prompt="Your Default Title"
. This will be the default value that will come display on the Spinner
when no item is selected.
You need to set the property of this in XML file for the Spinner
.