public class TintUtil
extends java.lang.Object
| Constructor and Description |
|---|
TintUtil() |
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.drawable.Drawable |
tintDrawable(android.graphics.drawable.Drawable drawable,
android.content.res.ColorStateList color)
Tints a drawable with the provided color state list
|
static android.graphics.drawable.Drawable |
tintDrawable(android.graphics.drawable.Drawable drawable,
int color)
Tints a drawable with the provided color
|
static void |
tintTextView(android.widget.TextView textview,
android.content.res.ColorStateList tintColor)
Tints TextView's text color and it's compound drawables
|
public static void tintTextView(@NonNull
android.widget.TextView textview,
android.content.res.ColorStateList tintColor)
textview - text view to tinttintColor - color state list to use for tintingpublic static android.graphics.drawable.Drawable tintDrawable(@Nullable
android.graphics.drawable.Drawable drawable,
int color)
drawable - drawable to tintcolor - tint colorpublic static android.graphics.drawable.Drawable tintDrawable(@Nullable
android.graphics.drawable.Drawable drawable,
android.content.res.ColorStateList color)
drawable - drawable to tintcolor - tint color state list