Files
android_development/samples/browseable/DrawableTinting/_index.jd
Trevor Johns 48b7225a27 Sync sample prebuilts
Synced to lmp-mr1-ub-docs commit 9b3abfde74ffa708734d2b8a09e1de0a0c82451c.

Change-Id: Ibae1c4729c9b8b4c0de2faebb998459a8da524e1
2015-05-20 22:04:28 -07:00

18 lines
813 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>