title: How to apply color filters to specific drawables in a StateListDrawable?
body: <p>It seems that <code>StateListDrawable</code> will ignore color filters applied to the drawables they contain. For example:</p>
  
  <pre><code>StateListDrawable sld = new StateListDrawable();
  Drawable pressedState = Context.getResources().getDrawable(R.drawable.solid_green);
  
  pressedState.setColorFilter(Color.RED, PorterDuff.Mode.SRC);
  
  sld.addState(new int[] {android.R.attr.state_pressed}, pressedState);
  // Other states...
  </code></pre>
  
  <p>If you apply <code>sld</code> to a view's background, you would expect the view's background to turn solid red when it is pressed. Instead, it would turn green - the color of <code>pressedState</code> with no filters applied.</p>