lundi 14 août 2017

selected item of a spinner in an if statement

How can I use if statement when the selected value = 0 ?

if( wilayat.setSelection(0) || city.setSelection(0) ||

station.setSelection(0) || distnation.setSelection(0)) {

            message = "Select the 4 fields, please..";
            Toast.makeText(BusArrivalTime.this, message, Toast.LENGTH_SHORT).show();

        }

Aucun commentaire:

Enregistrer un commentaire