Appcelerator Titanium: How do I change SearchView colors on Android? (hintText and cross icon) -
i have searchview dark , hinttext , cross icon black, want set color of these 2 things white.
i using custom theme android nothing searchview. how custom theme xml file looks like:
<resources> <style name="theme.myapp" parent="@style/theme.appcompat.light.darkactionbar"> <item name="android:spinneritemstyle">@style/myspinneritem</item> <item name="android:actionbarstyle">@style/searchviewtheme</item> </style> <style name="searchviewtheme" parent="theme.appcompat.light.darkactionbar"> <item name="android:textcolorprimary">#ffffff</item> <item name="android:textcolorsecondary">#ffffff</item> <item name="android:textcolorhint">#cccccc</item> </style> <style name="myspinneritem" parent="@android:style/widget.textview.spinneritem"> <item name="android:paddingtop">10dp</item> <item name="android:paddingbottom">10dp</item> <item name="android:paddingleft">10dp</item> <item name="android:textsize">14dp</item> </style> </resources>
i found solution. if wants know did:
i deleted line:
<item name="android:actionbarstyle">@style/searchviewtheme</item>
and then, added .tss file searchview is:
"window[platform=android]" : { theme : "searchviewtheme" }
Comments
Post a Comment