TintableCompoundDrawablesView
interface TintableCompoundDrawablesView
AppCompatAutoCompleteTextView |
A |
AppCompatButton |
A |
AppCompatCheckBox |
A |
AppCompatCheckedTextView |
A |
AppCompatEditText |
A |
AppCompatMultiAutoCompleteTextView |
A |
AppCompatRadioButton |
A |
AppCompatTextView |
A |
AppCompatToggleButton |
A |
EmojiAppCompatButton |
AppCompatButton widget enhanced with emoji capability by using |
EmojiAppCompatEditText |
AppCompatEditText widget enhanced with emoji capability by using |
EmojiAppCompatTextView |
AppCompatTextView widget enhanced with emoji capability by using |
GuidedActionAppCompatEditText |
A custom EditText that satisfies the IME key monitoring requirements of GuidedStepFragment. |
MotionButton |
A MotionButton is an AppCompatButton that can round its edges. |
Interface which allows android.widget.TextView and subclasses to tint compound drawables with TextViewCompat when running on API v22 devices or lower.
Summary
Public functions |
|
|---|---|
ColorStateList? |
Return the tint applied to the compound drawables, if specified. |
PorterDuff.Mode? |
Returns the blending mode used to apply the tint to the compound drawables, if specified. |
Unit |
Applies a tint to the compound drawables. |
Unit |
setSupportCompoundDrawablesTintMode(tintMode: PorterDuff.Mode?)Specifies the blending mode used to apply the tint specified by |
Public functions
getSupportCompoundDrawablesTintList
fun getSupportCompoundDrawablesTintList(): ColorStateList?
Return the tint applied to the compound drawables, if specified.
| Returns | |
|---|---|
ColorStateList? |
the tint applied to the compound drawables |
getSupportCompoundDrawablesTintMode
fun getSupportCompoundDrawablesTintMode(): PorterDuff.Mode?
Returns the blending mode used to apply the tint to the compound drawables, if specified.
| Returns | |
|---|---|
PorterDuff.Mode? |
the blending mode used to apply the tint to the compound drawables |
| See also | |
|---|---|
setSupportCompoundDrawablesTintMode |
setSupportCompoundDrawablesTintList
fun setSupportCompoundDrawablesTintList(tint: ColorStateList?): Unit
Applies a tint to the compound drawables. Does not modify the current tint mode, which is SRC_IN by default.
Subsequent calls to setCompoundDrawables and related methods will automatically mutate the drawables and apply the specified tint and tint mode.
| Parameters | |
|---|---|
tint: ColorStateList? |
the tint to apply, may be |
| See also | |
|---|---|
getSupportCompoundDrawablesTintList |
setSupportCompoundDrawablesTintMode
fun setSupportCompoundDrawablesTintMode(tintMode: PorterDuff.Mode?): Unit
Specifies the blending mode used to apply the tint specified by setSupportCompoundDrawablesTintList to the compound drawables. The default mode is SRC_IN.
| Parameters | |
|---|---|
tintMode: PorterDuff.Mode? |
the blending mode used to apply the tint, may be |