1// setting branch data in manually and load to spBranchName
2 List<String> branchList = new ArrayList<>();
3 branchList.add("CHITTAGONG");
4 branchList.add("DHAKA");
5
6 ArrayAdapter<String> branchListAdapter = new ArrayAdapter<>(getActivity(),
7 android.R.layout.simple_spinner_item, branchList);
8 branchListAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
9 spBranchName.setAdapter(branchListAdapter);