Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

DrawableUtils

public class DrawableUtils
extends Object

java.lang.Object
   ↳ com.google.android.material.drawable.DrawableUtils


Utils class for Drawables.

Summary

Public methods

static PorterDuffColorFilter updateTintFilter(Drawable drawable, ColorStateList tint, PorterDuff.Mode tintMode)

Returns a tint filter for the given tint and mode.

Inherited methods

From class java.lang.Object

Public methods

updateTintFilter

PorterDuffColorFilter updateTintFilter (Drawable drawable, 
                ColorStateList tint, 
                PorterDuff.Mode tintMode)

Returns a tint filter for the given tint and mode.

Parameters
drawable Drawable

tint ColorStateList

tintMode PorterDuff.Mode

Returns
PorterDuffColorFilter