I am wondering if it is possible to change the title text in my Spinner menu?
I see the identifier of the request header field in the component, but I do not know if it is possible to avoid it, because it always accepts the data of the first row from my array list ....
spinner = (Spinner) findViewById(R.id.spinner);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(
this,
android.R.layout.simple_spinner_item,
CategoriesConsumer.categories);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_item);
spinner.setAdapter(adapter);
source
share