Android beginner
Android beginner

Reputation: 245

How to change Spinner's dropdown list color

Search alot on but doesn't find a correct answer. I've a AlertDialogbox that displays Spinner with dropdown list. Everythings works fine but when click on spinner the dropdown list background color is dark grey and list item color is black. So its quite difficult to see list item. Is there any way to set list item color to white so that it is visible. Thanks in advance

fSpinner = (Spinner)alertView.findViewById(R.id.fSpinner);
            ArrayAdapter<String> adp = new ArrayAdapter<String> (MainActivity.this,android.R.layout.simple_spinner_dropdown_item,providers);
            fSpinner.setAdapter(adp);

Upvotes: 1

Views: 7881

Answers (1)

dileep
dileep

Reputation: 347

just add android:popupBackground="#000000"

Upvotes: 13

Related Questions