1page.tags="DrawableTinting" 2sample.group=UI 3@jd:body 4 5<p> 6 7 Sample that shows applying tinting and color filters to Drawables both programmatically 8 and as Drawable resources in XML. 9 \n\nTinting is set on a nine-patch drawable through the "tint" and "tintMode" parameters. 10 A color state list is referenced as the tint color, which defines colors for different 11 states of a View (for example disabled/enabled, focused, pressed or selected). 12 \n\nProgrammatically, tinting is applied to a Drawable through its "setColorFilter" method, 13 with a reference to a color and a PorterDuff blend mode. The color and blend mode can be 14 changed from the UI to see the effect of different options. 15 16 </p> 17