Android Material Design Theme picker color -
i have material design theme in android. want change picker label , button color because appear in white color (colorprimary) can't it.
this theme:
<resources> <style name="theme.cuponisimo" parent="@style/theme.appcompat"> <item name="colorprimary">@color/azulcuponisimo</item> <item name="colorcontrolactivated">@color/azuloscuro</item> <item name="coloraccent">@color/azulcuponisimo</item> <item name="colorcontrolnormal">#ffffff</item> <item name="colorcontrolhighlight">@color/azulclaro</item> <item name="android:statusbarcolor">@color/azulcuponisimo</item> <item name="android:navigationbarcolor">@color/azulcuponisimo</item> <item name="android:textcolorprimary">#ffffff</item> </style> <color name="azulcuponisimo">#0a80b0</color> <color name="azuloscuro">#01506e</color> <color name="azulclaro">#9dccdf</color> </resources>
i want picker have azulcuponisimo color, white. please me!
finally, found solution:
in android-holo-colors create colorspinner , then,
custom_theme.xml
<item name="android:spinnerstyle">@style/spinner</item> <item name="android:spinnerdropdownitemstyle">@style/spinnerdropdownitem</item> <item name="android:spinneritemstyle">@style/spinneritem</item>
styles_nametheme.xml
<style name="spinner" parent="android:widget.spinner"> <item name="android:background">@drawable/nametheme_spinner_background_holo_light</item> <item name="android:dropdownselector">@drawable/nametheme_list_selector_holo_light</item> </style> <style name="spinnerdropdownitem" parent="android:widget.dropdownitem.spinner"> <item name="android:checkmark">@drawable/nametheme_btn_radio_holo_light</item> <item name="android:textcolor">@color/verdeoscuro</item> <item name="android:background">#ffffff</item> </style> <style name="spinneritem" parent="android:widget.textview.spinneritem"> <item name="android:textappearance">@style/appearancespinneritem</item> </style> <style name="appearancespinneritem" parent="android:textappearance.widget.textview.spinneritem"> <item name="android:textcolor">@color/verdeoscuro</item> </style>
that's work perfectly. hope can you.
Comments
Post a Comment