Hello, I would like to know if you have how to put the list that is inside Spinner directly in the layout.
I usually do this:
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