android - Spinner style (AppCompat Light DarkActionBar) for a button => wrong icon color -


i use theme bases on appcompat.light.darkactinbar.

(1) spinner works expected

if add spinner following, works expected:

<spinner     android:id="@+id/sptype"     android:layout_width="wrap_content"     android:layout_height="wrap_content" /> 

and set adapter:

adaptertype = new arrayadapter<mappedresourcevalue>(getactivity(), r.layout.support_simple_spinner_dropdown_item, statistictypes.getvalues()); adaptertype.setdropdownviewresource(r.layout.support_simple_spinner_dropdown_item); sptype.setadapter(adaptertype); 

(2) spinner style view not work

if add button , want style it, spinner, has white drop down icon instead of dark one...

<button     android:id="@+id/bttypes"     style="?android:attr/spinnerstyle"     android:layout_width="match_parent"     android:layout_height="wrap_content" /> 

i tried style="?android:spinnerstyle" apperently not make difference...


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -