title: Tint CheckBox and Toolbar with different colors in nested preference activity
body: <p>When I first start looking over this question I found <a href="https://stackoverflow.com/questions/29502571/tint-checkbox-and-toolbar-stuff-separately">this</a> question, but the answer didn't work for me. I am working on a <strong>KitKat</strong> phone, but from what I read, this can be done on a pre-lollipop versions using the <code>AppCompat</code> library. I am using <a href="https://github.com/davcpas1234/MaterialSettings" rel="nofollow noreferrer">this</a> GitHub repo, and more specificaly <a href="https://github.com/davcpas1234/MaterialSettings/blob/master/app/src/main/java/uk/verscreative/materialsettings/SettingsExampleActivity.java" rel="nofollow noreferrer">this</a> code sample to create nested preference screen.</p>
  
  <p>Here is my <code>AppTheme.SettingsTheme</code> for the <code>SettingActivity</code> in the code sample:</p>
  
  <pre><code>&lt;style name="AppTheme.SettingsTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;item name="titleTextStyle"&gt;@android:color/white&lt;/item&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;item name="colorControlNormal"&gt;#fff&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>This line:  <code>&lt;item name="colorControlNormal"&gt;#fff&lt;/item&gt;</code> changes the <code>Toolbar</code> from having a <strong>white</strong> text and <strong>black</strong> back arrow, to having both the text and back arrow appear <strong>white</strong> (which is good).</p>
  
  <p>The issue is that I have a <code>CheckBoxPreference</code> which is tinted with this line also, so when it in not check, I can barely see it (box color is <strong>white</strong>).</p>
  
  <p><a href="https://i.stack.imgur.com/JX9HC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JX9HC.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/kfiIL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kfiIL.png" alt="enter image description here"></a></p>
  
  <p>I tried creating a special theme just for the toolbar (again from <a href="https://stackoverflow.com/questions/29502571/tint-checkbox-and-toolbar-stuff-separately">this</a> answer) and doing the <code>&lt;item name="colorControlNormal"&gt;COLOR&lt;/item&gt;</code>, but its just doesn't affect to toolbar. </p>
  
  <p>I also tried to tint the <code>CheckBoxPreference</code> alone, but it seems that in involves creating a custom layout for it, and this brings a lot more work.</p>
  
  <p>Here is my toolbar layout, currently with no specific theme:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.AppBarLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      tools:context=".ui.activities.settingsActivity.SettingsActivity"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:background="?colorPrimary"
          android:minHeight="?actionBarSize"
          app:navigationContentDescription="@string/abc_action_bar_up_description"
          app:navigationIcon="?homeAsUpIndicator"
          app:title="@string/activity_settings_title"
          app:titleTextColor="@android:color/white" /&gt;
  &lt;/android.support.design.widget.AppBarLayout&gt;
  </code></pre>
  
  <p>Can anybody explain how to tint the <code>CheckBoxPreference</code> and <code>Toolbar</code> seperatly? I don't care which one of them I tint using the <code>ActivityTheme</code> and which one I tint on its custom <code>theme</code>. The answers I found didn't work.</p>