TintableCompoundButton
public interface TintableCompoundButton
AppCompatCheckBox |
A |
AppCompatRadioButton |
A |
Interface which allows a android.widget.CompoundButton to receive tinting calls from CompoundButtonCompat when running on API v20 devices or lower.
Summary
Public methods |
|
|---|---|
abstract @Nullable ColorStateList |
Returns the tint applied to the button drawable |
abstract @Nullable PorterDuff.Mode |
Returns the blending mode used to apply the tint to the button drawable |
abstract void |
Applies a tint to the button drawable. |
abstract void |
setSupportButtonTintMode(@Nullable PorterDuff.Mode tintMode)Specifies the blending mode which should be used to apply the tint specified by |
Public methods
getSupportButtonTintList
abstract @Nullable ColorStateList getSupportButtonTintList()
Returns the tint applied to the button drawable
| See also | |
|---|---|
setSupportButtonTintList |
getSupportButtonTintMode
abstract @Nullable PorterDuff.Mode getSupportButtonTintMode()
Returns the blending mode used to apply the tint to the button drawable
| See also | |
|---|---|
setSupportButtonTintMode |
setSupportButtonTintList
abstract void setSupportButtonTintList(@Nullable ColorStateList tint)
Applies a tint to the button drawable. Does not modify the current tint mode, which is SRC_IN by default.
Subsequent calls to setButtonDrawable(Drawable) should automatically mutate the drawable and apply the specified tint and tint mode.
| Parameters | |
|---|---|
@Nullable ColorStateList tint |
the tint to apply, may be |
setSupportButtonTintMode
abstract void setSupportButtonTintMode(@Nullable PorterDuff.Mode tintMode)
Specifies the blending mode which should be used to apply the tint specified by setSupportButtonTintList to the button drawable. The default mode is SRC_IN.
| Parameters | |
|---|---|
@Nullable PorterDuff.Mode tintMode |
the blending mode used to apply the tint, may be |
| See also | |
|---|---|
getSupportButtonTintMode |
|
setTintMode |