TintableCompoundButton
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 functions |
|
|---|---|
ColorStateList? |
Returns the tint applied to the button drawable |
PorterDuff.Mode? |
Returns the blending mode used to apply the tint to the button drawable |
Unit |
Applies a tint to the button drawable. |
Unit |
setSupportButtonTintMode(tintMode: PorterDuff.Mode?)Specifies the blending mode which should be used to apply the tint specified by |
Public functions
getSupportButtonTintList
fun getSupportButtonTintList(): ColorStateList?
Returns the tint applied to the button drawable
| See also | |
|---|---|
setSupportButtonTintList |
getSupportButtonTintMode
fun getSupportButtonTintMode(): PorterDuff.Mode?
Returns the blending mode used to apply the tint to the button drawable
| See also | |
|---|---|
setSupportButtonTintMode |
setSupportButtonTintList
fun setSupportButtonTintList(tint: ColorStateList?): Unit
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 | |
|---|---|
tint: ColorStateList? |
the tint to apply, may be |
setSupportButtonTintMode
fun setSupportButtonTintMode(tintMode: PorterDuff.Mode?): Unit
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 | |
|---|---|
tintMode: PorterDuff.Mode? |
the blending mode used to apply the tint, may be |
| See also | |
|---|---|
getSupportButtonTintMode |
|
setTintMode |