Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 19, 2019 19:06
Show Gist options
  • Save parzibyte/464ff3920944ea3774e3855fc31f0e14 to your computer and use it in GitHub Desktop.
Save parzibyte/464ff3920944ea3774e3855fc31f0e14 to your computer and use it in GitHub Desktop.
// Este ejemplo es por si estás en un fragmento
// Lista de elementos que se pondrán en el spinner
String[] categorias = {"Maquilero", "Deshebrado"};
spinerCategoriaLugar.setAdapter(new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_dropdown_item, categorias));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment