title: Tint VectorDrawable inside Drawable Resource xml
body: <p>i've had a drawable resource for a selectable Button/ImageView like this:</p>
  
  <pre><code>&lt;selector&gt;
  &lt;item android:state_selected="true"&gt;
      &lt;layer-list&gt;
          &lt;item&gt;
              &lt;shape android:shape="oval"&gt;
                  &lt;solid android:color="@color/blue"/&gt;
              &lt;/shape&gt;
          &lt;/item&gt;
          &lt;item&gt;
              &lt;bitmap
                  android:src="@drawable/ic_icon"
                  android:tint="@color/white"/&gt;
  
          &lt;/item&gt;
      &lt;/layer-list&gt;
  &lt;/item&gt;
  &lt;item&gt;
      &lt;layer-list&gt;
          &lt;item&gt;
              &lt;shape android:shape="oval"&gt;
                  &lt;solid android:color="@color/background_unselected"/&gt;
              &lt;/shape&gt;
          &lt;/item&gt;
          &lt;item&gt;
              &lt;bitmap
                  android:src="@drawable/ic_icon"
                  android:tint="@color/icon_unselected"/&gt;
          &lt;/item&gt;
      &lt;/layer-list&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p></p>
  
  <p>as i've switched to use VectorDrawables the above declaration does not work because i cannot reference a VectorDrawable with a <code>&lt;bitmap&gt;</code> tag.
  But as far as i know that's the only way i can tint the icon.</p>
  
  <p>I also cannot apply a Colorfilter in code as this would tint the whole drawable and not just the icon.</p>
  
  <p>Any suggestions? </p>