Answers for "get selected item spinner"

0

spinner get selected index

spinner1.getSelectedItemPosition();
Posted by: Guest on November-07-2020
0

how to collect the selected value from spinner

fields.getSelectedItem().toString()

//A one liner is all that is needed
//Change 'fields' to the variable name of the spinner you are dealing with.
Posted by: Guest on February-20-2021
0

get selected item spinner

Spinner spinner = (Spinner)findViewById(R.id.spinner);
String text = spinner.getSelectedItem().toString();
Posted by: Guest on September-05-2021

Code answers related to "get selected item spinner"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language