How to view default android simple_spinner_dropdown_item style

Often I like the default style for Android for a particular widget.

Often I like to slightly modify this default style, rather than creating my own style from scratch.

Now I use android.R.layout.simple_spinner_dropdown_itemas dropDownViewResource on my spinner adapter - like this:

adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

I can open this xml file layout and copy its contents to change it. But the most important part of this xml file is the attribute style, it looks like this:style="?android:attr/spinnerDropDownItemStyle"

Now, my question is: how do I find / view / copy this style spinnerDropDownItemStyle, so I can, for example, just change the background color.

Thanx for your help

+5
source share
2 answers

. seprate spinner setDropDownResource()

adapter.setDropDownViewResource(android.R.layout.CUSTOM_LAYOUT);

0

All Articles