-
public interface TintableBackgroundView
Interface which allows a android.view.View to receive background tinting calls from ViewCompat when running on API v20 devices or lower.
-
-
Method Summary
Modifier and Type Method Description abstract void
setSupportBackgroundTintList(@Nullable() ColorStateList tint)
Applies a tint to the background drawable. abstract ColorStateList
getSupportBackgroundTintList()
Return the tint applied to the background drawable, if specified. abstract void
setSupportBackgroundTintMode(@Nullable() PorterDuff.Mode tintMode)
Specifies the blending mode used to apply the tint specified by setSupportBackgroundTintList} to the backgrounddrawable. abstract PorterDuff.Mode
getSupportBackgroundTintMode()
Return the blending mode used to apply the tint to the backgrounddrawable, if specified. -
-
Method Detail
-
setSupportBackgroundTintList
abstract void setSupportBackgroundTintList(@Nullable() ColorStateList tint)
Applies a tint to the background drawable. Does not modify the current tintmode, which is SRC_IN by default.
Subsequent calls to
{@code View.setBackground(Drawable)}
will automaticallymutate the drawable and apply the specified tint and tint mode.- Parameters:
tint
- the tint to apply, may be{@code null}
to clear tint
-
getSupportBackgroundTintList
@Nullable() abstract ColorStateList getSupportBackgroundTintList()
Return the tint applied to the background drawable, if specified.
-
setSupportBackgroundTintMode
abstract void setSupportBackgroundTintMode(@Nullable() PorterDuff.Mode tintMode)
Specifies the blending mode used to apply the tint specified by setSupportBackgroundTintList} to the backgrounddrawable. The default mode is SRC_IN.
- Parameters:
tintMode
- the blending mode used to apply the tint, may be{@code null}
to clear tint
-
getSupportBackgroundTintMode
@Nullable() abstract PorterDuff.Mode getSupportBackgroundTintMode()
Return the blending mode used to apply the tint to the backgrounddrawable, if specified.
-
-
-
-