Advertisement
Guest User

Untitled

a guest
May 25th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class SpinnerActivity extends Activity implements OnItemSelectedListener {
  2.     ... 
  3.      
  4.     public void onItemSelected(AdapterView<?> parent, View view,
  5.             int pos, long id) {
  6.         // An item was selected. You can retrieve the selected item using 
  7.         // parent.getItemAtPosition(pos) 
  8.     } 
  9.  
  10.     public void onNothingSelected(AdapterView<?> parent) {
  11.         // Another interface callback 
  12.     } 
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement