Android Set Custom Preference Divider Color
<p>I am making an app that uses Preferences for a settings menu.  I have code for the different objects in the menu, but the dividers are a pale white color.  I would like to make it a darker color (like black) so that it would be easier to see.  My current code is as follows:</p>

<p>preferences.xml:</p>

<pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;PreferenceCategory
        android:title="Appearance" /&gt;

    &lt;ListPreference
        android:key="color_scheme"
        android:title="Color Scheme"
        android:summary="Change the color scheme of the app"
        android:dialogTitle="Color Scheme"
        android:entries="@array/colors"
        android:entryValues="@array/colors"
        android:defaultValue="Default (Blue Gray)" /&gt;

    &lt;PreferenceCategory
        android:title="Other" /&gt;

    &lt;Preference
        android:key="@string/preference_reset"
        android:title="Reset Values"
        android:summary="Reset all values to their default value" /&gt;
&lt;/PreferenceScreen&gt;
</code></pre>

<p>styles.xml:</p>

<pre><code>&lt;style name="PreferenceStyle"&gt;
    &lt;item name="android:textColorPrimary"&gt;@color/text_color_dark&lt;/item&gt;
    &lt;item name="android:textColorSecondary"&gt;@color/text_color_gray&lt;/item&gt;
    &lt;item name="android:listSeparatorTextViewStyle"&gt;@style/ListSeperatorColor&lt;/item&gt;
&lt;/style&gt;

&lt;style name="ListSeperatorColor" parent="android:Widget.TextView"&gt;
    &lt;item name="android:background"&gt;@color/text_color_dark&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>And finally:</p>

<pre><code>setTheme(R.style.PreferenceStyle);
</code></pre>