How to change the Search View Background color and the icons ?
i did the same adding in styles.xml
:
<style name="MyTheme" parent="Theme.Sherlock">
<item name="searchViewCloseIcon">@drawable/my_close_icon</item>
<item name="searchViewSearchIcon">@drawable/my_search_icon</item>
<item name="searchAutoCompleteTextView">@style/searchTextView</item>
</style>
<style name="searchTextView" parent="Widget.Sherlock.SearchAutoCompleteTextView">
<item name="android:textColor">@android:color/black</item>
<item name="android:textColorHint">@android:color/red</item>
</style>
More info: couldn't change actionbarsherlock SearchView icon
Update:
Text color of SearchView in ActionBar with ActionBarSherlock
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.