I have implemented the spinner by populating the array list through database.I can get and show the array list in my spinner array adapter but if I select the item in spinne
Spinner displays neither the default nor selected item value. But drop-down menu items are show when selected.
Background and text color both being white!!!
Write a custom layout for a spiner item and use it instead of the default,android.R.layout.simple_spinner_item
.
How to change spinner text size and text color?
your_spinner_instance.setOnItemSelectedListener(new Spinner.OnItemSelectedListener(){
public void onItemSelected(AdapterView> parent, View view, int pos,
long id) {
((TextView) view).setTextColor(Color.RED);
}
public void onNothingSelected(AdapterView> parent) {
}
});
Android needs some major update or maybe dart and flutter should take over...
Thanks Catluc