Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SpinnerActivity extends Activity implements OnItemSelectedListener {
- ...
- public void onItemSelected(AdapterView<?> parent, View view,
- int pos, long id) {
- // An item was selected. You can retrieve the selected item using
- // parent.getItemAtPosition(pos)
- }
- public void onNothingSelected(AdapterView<?> parent) {
- // Another interface callback
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement