get data from spinner android studio
Spinner spinner_house = (Spinner) findViewById(R.id.spinner_house);
String spinner_house_data = spinner_house.getSelectedItem().toString();
get data from spinner android studio
Spinner spinner_house = (Spinner) findViewById(R.id.spinner_house);
String spinner_house_data = spinner_house.getSelectedItem().toString();
how to set list data to android spinner
// setting branch data in manually and load to spBranchName
List<String> branchList = new ArrayList<>();
branchList.add("CHITTAGONG");
branchList.add("DHAKA");
ArrayAdapter<String> branchListAdapter = new ArrayAdapter<>(getActivity(),
android.R.layout.simple_spinner_item, branchList);
branchListAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spBranchName.setAdapter(branchListAdapter);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us