Spinner white text color white background android solution


Here is how to solve spinner showing white text color on white background. Make sure to use “this” or “getActivity()” in arrayAdapter.

Here is correct example :

1
2
3
4
 ArrayAdapter<String> adapterCity = new ArrayAdapter<String>(getActivity(),
                    android.R.layout.simple_spinner_item, listCity);
            adapterCity.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
            mSpinCity.setAdapter(adapterCity);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.