Files
android_development/samples/browseable/DrawableTinting/_index.jd
Trevor Johns 6876a9cfc5 Add browseable samples for L SDK release
Change-Id: I71c6ff9a90b7734042d68af7f01e6d61118cc508
2014-10-17 03:31:00 -07:00

17 lines
812 B
Plaintext

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