CheckedTextViewCompat
class CheckedTextViewCompat
Helper for accessing CheckedTextView.
Summary
Public functions |
|
|---|---|
java-static Drawable? |
@ReplaceWith(expression = "textView.getCheckMarkDrawable()")This function is deprecated. Call |
java-static ColorStateList? |
getCheckMarkTintList(textView: CheckedTextView)Returns the tint applied to the check mark drawable |
java-static PorterDuff.Mode? |
getCheckMarkTintMode(textView: CheckedTextView)name android:checkMarkTintMode |
java-static Unit |
setCheckMarkTintList(textView: CheckedTextView, tint: ColorStateList?)Applies a tint to the check mark drawable. |
java-static Unit |
setCheckMarkTintMode(Specifies the blending mode used to apply the tint specified by |
Public functions
@ReplaceWith(expression = "textView.getCheckMarkDrawable()")
java-static fungetCheckMarkDrawable(textView: CheckedTextView): Drawable?
Returns the drawable used as the check mark image
| See also | |
|---|---|
setCheckMarkDrawable |
getCheckMarkTintList
java-static fun getCheckMarkTintList(textView: CheckedTextView): ColorStateList?
Returns the tint applied to the check mark drawable
| See also | |
|---|---|
setCheckMarkTintList |
getCheckMarkTintMode
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 |
| See also | |
|---|---|
setCheckMarkTintMode |
setCheckMarkTintList
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 |
| See also | |
|---|---|
setCheckMarkTintList |
setCheckMarkTintMode
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 |
| See also | |
|---|---|
getCheckMarkTintMode |
|
setTintMode |