CheckedTextViewCompat

Added in 1.6.0

class CheckedTextViewCompat


Helper for accessing CheckedTextView.

Summary

Public functions

java-static Drawable?
@ReplaceWith(expression = "textView.getCheckMarkDrawable()")
getCheckMarkDrawable(textView: CheckedTextView)

This function is deprecated.

Call getCheckMarkDrawable directly.

java-static ColorStateList?

Returns the tint applied to the check mark drawable

java-static PorterDuff.Mode?

name android:checkMarkTintMode

java-static Unit

Applies a tint to the check mark drawable.

java-static Unit
setCheckMarkTintMode(
    textView: CheckedTextView,
    tintMode: PorterDuff.Mode?
)

Specifies the blending mode used to apply the tint specified by setCheckMarkTintList} to the check mark drawable.

Public functions

getCheckMarkDrawable

Added in 1.6.0
Deprecated in 1.15.0
@ReplaceWith(expression = "textView.getCheckMarkDrawable()")
java-static fun getCheckMarkDrawable(textView: CheckedTextView): Drawable?

Returns the drawable used as the check mark image

getCheckMarkTintList

Added in 1.6.0
java-static fun getCheckMarkTintList(textView: CheckedTextView): ColorStateList?

Returns the tint applied to the check mark drawable

getCheckMarkTintMode

Added in 1.6.0
java-static fun getCheckMarkTintMode(textView: CheckedTextView): PorterDuff.Mode?

name android:checkMarkTintMode

Returns
PorterDuff.Mode?

the blending mode used to apply the tint to the check mark drawable

setCheckMarkTintList

Added in 1.6.0
java-static fun setCheckMarkTintList(textView: CheckedTextView, tint: ColorStateList?): Unit

Applies a tint to the check mark drawable. Does not modify the current tint mode, which is SRC_IN by default.

Subsequent calls to setCheckMarkDrawable should automatically mutate the drawable and apply the specified tint and tint mode using setTintList.

Parameters
textView: CheckedTextView

CheckedTextView for which to apply the tint.

tint: ColorStateList?

the tint to apply, may be null to clear tint

setCheckMarkTintMode

Added in 1.6.0
java-static fun setCheckMarkTintMode(
    textView: CheckedTextView,
    tintMode: PorterDuff.Mode?
): Unit

Specifies the blending mode used to apply the tint specified by setCheckMarkTintList} to the check mark drawable. The default mode is SRC_IN.

Parameters
textView: CheckedTextView

CheckedTextView for which to apply the tint mode.

tintMode: PorterDuff.Mode?

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