2
我想更改我的偏好类别的颜色,并将默认水平线更改为蓝色。这可能吗?在android中更改偏好类别的文本颜色和水平颜色
我试图设置主题为偏好设置如下:
<style name="myPreferenceTheme" parent="@style/AppBaseTheme">
<item name="android:textColor">@color/blue</item>
</style>
,但我得到了作为输出如下:
我preference.xml看起来是这样的:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceCategory
android:title="ACCOUNT" >
<Preference
android:key="googleAccount"
android:summary=""
android:title="Google Account" >
</Preference>
<Preference
android:key="signoutmenu"
android:summary=""
android:title="Sign out" >
</Preference>
</PreferenceScreen>
有人可以帮我解决这个问题像上面的截图中显示的起诉?
谢谢!
它不是一个答案。但这可能会帮助你 http://stackoverflow.com/questions/6297635/custom-preferencecategory-headings – 2014-09-10 17:28:09