TintableCompoundDrawablesView

Added in 1.1.0

public 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 methods

abstract @Nullable ColorStateList

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

abstract @Nullable PorterDuff.Mode

Returns the blending mode used to apply the tint to the compound drawables, if specified.

abstract void

Applies a tint to the compound drawables.

abstract void

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

Public methods

getSupportCompoundDrawablesTintList

Added in 1.1.0
abstract @Nullable ColorStateList getSupportCompoundDrawablesTintList()

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

Returns
@Nullable ColorStateList

the tint applied to the compound drawables

getSupportCompoundDrawablesTintMode

Added in 1.1.0
abstract @Nullable PorterDuff.Mode getSupportCompoundDrawablesTintMode()

Returns the blending mode used to apply the tint to the compound drawables, if specified.

Returns
@Nullable PorterDuff.Mode

the blending mode used to apply the tint to the compound drawables

setSupportCompoundDrawablesTintList

Added in 1.1.0
abstract void setSupportCompoundDrawablesTintList(@Nullable ColorStateList tint)

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
@Nullable ColorStateList tint

the tint to apply, may be null to clear tint

setSupportCompoundDrawablesTintMode

Added in 1.1.0
abstract void setSupportCompoundDrawablesTintMode(@Nullable PorterDuff.Mode tintMode)

Specifies the blending mode used to apply the tint specified by setSupportCompoundDrawablesTintList to the compound drawables. The default mode is SRC_IN.

Parameters
@Nullable PorterDuff.Mode tintMode

the blending mode used to apply the tint, may be null to clear tint