title: android:Thumb disables Switch
body: <p>I am trying to change the color of the <code>Switch</code> Thumb, I have created following <code>drawable</code> file.</p>
  
  <p></p>
  
  <pre><code>&lt;item android:state_enabled="false" android:drawable="@color/backgroundTheme" /&gt;
  &lt;item android:state_pressed="true"  android:drawable="@color/backgroundTheme" /&gt;
  &lt;item android:state_checked="true"  android:drawable="@color/backgroundTheme" /&gt;
  &lt;item                               android:drawable="@color/backgroundTheme" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>When i add the above <code>drawable</code> in my switch, it disables the switch from the layout preview. Although the switch is still there, but its not visible after adding <code>drawable</code> as Thumb.</p>
  
  <p>If i add an <code>image</code> instead of <code>drawable-resourse-file</code>, it works and display image instead of round circle.</p>
  
  <pre><code>&lt;Switch
      android:layout_width="200dp"
      android:layout_height="200dp"
      android:id="@+id/switchNotifications"
      android:layout_centerHorizontal="true"
      android:paddingTop="150dp"
      android:text="@string/notification_settings"
      android:textColor="@color/white"
      android:checked="true"
     android:thumb="@drawable/switch_thumb"
     /&gt;
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p><strong>Switch_thumb.xml</strong></p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:state_enabled="false" android:color="@color/gray_background" /&gt;
      &lt;item android:state_pressed="true"  android:color="@color/gray_background"  /&gt;
      &lt;item android:state_checked="true"  android:color="@color/gray_background"  /&gt;
      &lt;item                               android:color="@color/gray_background"  /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Following image illustrate result i am getting in my layout
  I am using <code>android:thumb</code>, because app:thumb gives me following error message.</p>
  
  <p><strong>Update 2</strong></p>
  
  <p>I am getting following error message, when using app:thumbTint`</p>
  
  <blockquote>
    <p>Error:(31) No resource identifier found for attribute 'thumbTint' in
    package 'com.' Error:Execution failed for task
    ':app:processArmeabi-v7aDebugResources'.</p>
    
    <blockquote>
      <p>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command
      'C:\Users\Kirmani\AppData\Local\Android\Sdk\build-tools\23.0.2\aapt.exe''
      finished with non-zero exit value 1</p>
    </blockquote>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/x4Rf9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x4Rf9.png" alt="enter image description here"></a></p>