public interface TintedView
Modifier and Type | Field and Description |
---|---|
static android.graphics.PorterDuff.Mode[] |
modes |
Modifier and Type | Method and Description |
---|---|
android.content.res.ColorStateList |
getBackgroundTint()
Gets the tint of background Drawable
|
android.graphics.PorterDuff.Mode |
getBackgroundTintMode()
Gets the tint mode of background Drawable
|
android.content.res.ColorStateList |
getTint()
Gets the tint of foreground parts like checkbox or icon
|
android.graphics.PorterDuff.Mode |
getTintMode()
Gets the tint mode of foreground parts like checkbox or icon
|
boolean |
isAnimateColorChangesEnabled() |
void |
setAnimateColorChangesEnabled(boolean animateColorChanges) |
void |
setBackgroundTint(android.content.res.ColorStateList list)
Sets the tint of background Drawable
|
void |
setBackgroundTint(int color)
Sets the tint of background Drawable
|
void |
setBackgroundTintMode(android.graphics.PorterDuff.Mode mode)
Sets the tint mode of background Drawable
|
void |
setTint(android.content.res.ColorStateList list)
Sets the tint of foreground parts like checkbox or icon
|
void |
setTint(int color)
Sets the tint of foreground parts like checkbox or icon
|
void |
setTintMode(android.graphics.PorterDuff.Mode mode)
Sets the tint mode of foreground parts like checkbox or icon
|
void setTint(android.content.res.ColorStateList list)
list
- a tint color state listvoid setTint(int color)
color
- a tint colorandroid.content.res.ColorStateList getTint()
void setTintMode(@NonNull android.graphics.PorterDuff.Mode mode)
mode
- android.graphics.PorterDuff.Mode getTintMode()
void setBackgroundTint(android.content.res.ColorStateList list)
list
- a tint color state listvoid setBackgroundTint(int color)
color
- a tint colorandroid.content.res.ColorStateList getBackgroundTint()
void setBackgroundTintMode(@Nullable android.graphics.PorterDuff.Mode mode)
mode
- android.graphics.PorterDuff.Mode getBackgroundTintMode()
boolean isAnimateColorChangesEnabled()
void setAnimateColorChangesEnabled(boolean animateColorChanges)