I have multiple checkboxes inside a spinner. How to validate it when nothing is selected.
if(spinner_inperson.getSelectedItem()!="select"){
//Toast.makeText(spinner_crop_sown.this, "Unesite ime", Toast.LENGTH_LONG).show();
Toast.makeText(getApplicationContext(), "Please select Inperson Spinner Dropdown", Toast.LENGTH_LONG).show();
return false;
}
Here is the sample code which I tried
Aucun commentaire:
Enregistrer un commentaire