[英]How to Change ActionBarSherlock Search View icons and color
How to change the Search View Background color and the icons ? 如何更改搜索视图背景颜色和图标?
i did the same adding in styles.xml
: 我在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 更多信息: 无法更改actionbarsherlock SearchView图标
Update: 更新:
Text color of SearchView in ActionBar with ActionBarSherlock 使用ActionBarSherlock的ActionBar中SearchView的文本颜色
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.