TintableCompoundDrawablesView

Added in 1.1.0

interface TintableCompoundDrawablesView

Known direct subclasses
AppCompatAutoCompleteTextView

A AutoCompleteTextView which supports compatible features on older versions of the platform, including:

AppCompatButton

A Button which supports compatible features on older versions of the platform, including:

AppCompatCheckBox

A CheckBox which supports compatible features on older versions of the platform, including:

AppCompatCheckedTextView

A CheckedTextView which supports compatible features on older versions of the platform, including:

AppCompatEditText

A EditText which supports compatible features on older versions of the platform, including:

AppCompatMultiAutoCompleteTextView

A MultiAutoCompleteTextView which supports compatible features on older version of the platform, including:

AppCompatRadioButton

A RadioButton which supports compatible features on older versions of the platform, including:

AppCompatTextView

A TextView which supports compatible features on older versions of the platform, including:

AppCompatToggleButton

A ToggleButton which supports compatible features on older versions of the platform, including:

Known indirect subclasses
EmojiAppCompatButton

AppCompatButton widget enhanced with emoji capability by using EmojiTextViewHelper.

EmojiAppCompatEditText

AppCompatEditText widget enhanced with emoji capability by using EmojiEditTextHelper.

EmojiAppCompatTextView

AppCompatTextView widget enhanced with emoji capability by using EmojiTextViewHelper.

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

Specifies the blending mode used to apply the tint specified by setSupportCompoundDrawablesTintList to the compound drawables.

Public functions

getSupportCompoundDrawablesTintList

Added in 1.1.0
fun getSupportCompoundDrawablesTintList(): ColorStateList?

Return the tint applied to the compound drawables, if specified.

Returns
ColorStateList?

the tint applied to the compound drawables

getSupportCompoundDrawablesTintMode

Added in 1.1.0
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

setSupportCompoundDrawablesTintList

Added in 1.1.0
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 null to clear tint

setSupportCompoundDrawablesTintMode

Added in 1.1.0
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 null to clear tint