0

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

Priyanka
  • 3,369
  • 1
  • 10
  • 33
Niranjan
  • 67
  • 7

0 Answers0