daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 56 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. How do I read the string from a Spinner selected event
  2. spinState = (Spinner)this.findViewById(R.id.spinState);
  3.  
  4. ArrayAdapter<String> Stateadapter = new ArrayAdapter<String>                        (this,android.R.layout.simple_spinner_item, array_spinState);
  5. Stateadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);    
  6. spinState.setAdapter(Stateadapter);  
  7.  
  8. spinState.setOnItemSelectedListener(new StateOnItemSelectedListener());
  9.    
  10. public void onNothingSelected(AdapterView<?> parent)
  11. {   //Do nothing here
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top