Answers for "how to get value from spinner in android studio"

1

android studio get value of spinner

Spinner mySpinner = (Spinner) findViewById(R.id.your_spinner);
String text = mySpinner.getSelectedItem().toString();
Posted by: Guest on July-02-2021
2

get data from spinner android studio

Spinner spinner_house = (Spinner) findViewById(R.id.spinner_house);
String spinner_house_data = spinner_house.getSelectedItem().toString();
Posted by: Guest on February-10-2021

Code answers related to "how to get value from spinner in android studio"

Browse Popular Code Answers by Language