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