Answers for "spinner how to get selected value"

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 "spinner how to get selected value"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language