Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 19, 2019 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/9838a196f3843172b259b17da359d20f to your computer and use it in GitHub Desktop.
Save parzibyte/9838a196f3843172b259b17da359d20f to your computer and use it in GitHub Desktop.
spinerCategoriaLugar.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
String categoria = (String) spinerCategoriaLugar.getSelectedItem();
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
// No seleccionaron nada
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment