android - Sherlock 操作栏更改文本颜色

标签 android actionbarsherlock

我正在使用 sherlock 操作栏版本 4.1.0 (2012-05-17)。 如何更改此屏幕截图中文本颜色的颜色?在实际设备上它几乎不可读

enter image description here

我有这个主题

<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/

相关文章:

android - React-Native-Image-Picker(无法映射图像数组)

Android WebVIew WebViewClient

android - SherlockFragmentActivity setSupportProgressBarIndeterminateVisibility 不起作用

android - 在 ActionBar 上添加阴影

Android 操作栏列表导航停止工作

android - 如何以正确的格式获取日期

android - RecyclerView.Adapter notifyDataSetChanged() 使用 ContentProvider

用于回合制游戏的 Android Google Play 服务,无法使用默认 UI 接收邀请

android - 低 sdk 中的 ActionBarSherlock 高度属性

android - 如何使用 ActionBarSherlock 制作这样的弹出菜单