0
Hello, I wonder if you have how to put the list that is inside Spinner directly in the layout.
Normally I do so:
horario = new ArrayList<>();
horario.add("");
horario.add("Aberto Hoje");
horario.add("Não importa");
adapter = new ArrayAdapter<String>(getApplication(), android.R.layout.simple_spinner_dropdown_item, horario);
spinnerhora.setAdapter(adapter);
I would like to put inside the xml. Thank you
Wow, thank you so much! Perfect!
– Elaine Breda Schwaner
Hi Hugo, but one thing, changed the color of the text of my spinner with this. You know how I can change the color of the text?
– Elaine Breda Schwaner
Take a look at that answer
http://stackoverflow.com/questions/6159113/android-where-is-the-spinner-widgets-text-color-attribute-hiding
– hugofsousa