Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How do I read the string from a Spinner selected event
- spinState = (Spinner)this.findViewById(R.id.spinState);
- ArrayAdapter<String> Stateadapter = new ArrayAdapter<String> (this,android.R.layout.simple_spinner_item, array_spinState);
- Stateadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
- spinState.setAdapter(Stateadapter);
- spinState.setOnItemSelectedListener(new StateOnItemSelectedListener());
- public void onNothingSelected(AdapterView<?> parent)
- { //Do nothing here
- }
Add Comment
Please, Sign In to add comment