我正在使用 sherlock 操作栏版本 4.1.0 (2012-05-17)。 如何更改此屏幕截图中文本颜色的颜色?在实际设备上它几乎不可读
我有这个主题
<style name="MyTheme" parent="@style/Theme.Sherlock.Light">
<item name="android:textSize">20dp</item>
</style>
这在 AndroidManifest.xml 中
<application
android:name="abc.MyApp"
android:icon="@drawable/ic_launcher"
android:logo="@drawable/logo"
android:label="@string/app_name"
android:theme="@style/MyTheme"
>
最佳答案
实际上,我已经通过执行以下操作在 abs 4.2 中设置了 SearchView 文本颜色的样式:
<style name="MyTheme" parent="Theme.Sherlock.Light">
<item name="searchAutoCompleteTextView">@style/Widget.Styled.SearchAutocompleteTextView</item>
<item name="queryHint">@string/Search</item>
<item name="android:queryHint">@string/Search</item>
</style>
<style name="Widget.Styled.SearchAutocompleteTextView" parent="Widget.Sherlock.Light.SearchAutoCompleteTextView">
<item name="android:textColor">YOU_COLOR_HERE</item>
</style>
关于android - Sherlock 操作栏更改文本颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11776034/