Change the color of the preference header list

I am creating an application for an Android 4.0 tablet with a specific color scheme. I use Theme.Holo for my classes. I am using Theme.Holo.Light for my PreferenceActivity. I was able to customize the action bar using styles. I create a list of preference headers using the onBuildHeaders method, and group various preferences into fragments (similar to Android system settings). I also want to change the color of the title list items to match the color scheme of my application, but I could not figure out how to do this. Please click the link to see your activity.

Can I change this color scheme and how?

+3
source share
1 answer

listViewStyle xml, . , . :

themes.xml

<style name="Theme.Custom" parent="android:Theme.Holo.Light.DarkActionBar">
    <item name="android:listViewStyle">@style/MyListViewStyle</item>
</style>

styles.xml

<style name="MyListViewStyle" parent="@android:style/Widget.Holo.Light.ListView">
    <item name="android:background">@color/custom_color</item>
    <item name="android:listSelector">@drawable/my_selector</item> 
</style>
+1