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
Post a Comment