title: Change selector assigned to tint programmatically
body: <p>I've set a drawable to the tint of my ImageButton so the color of the icon changes automatically when the button is enabled or disabled, is there any way to change the tint programmatically after that so I keep the same behavior just with different colors for the enabled and disabled state?</p>
  
  <p><strong>The content of my_layout.xml:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;ImageButton
      android:id="@+id/button_minus"
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="2"
      android:background="@color/default_button_background"
      android:tint="@drawable/button_tint_color"
      app:srcCompat="@drawable/ic_remove_24px" /&gt;
  </code></pre>
  
  <p><strong>The content of button_tint_color.xml:</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item
          android:state_enabled="false"
          android:color="@color/icon_tint_disable_color" /&gt;
  
      &lt;item
          android:color="@color/icon_tint_enable_color" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Then in my code I can just do <code>buttonMinus.setEnabled(true)</code> or <code>buttonMinus.setEnabled(false)</code> and the icon color change automatically. Is there a way to set programmatically a different color for one or both the enabled color or disabled color ?</p>