CheckedTextViewCompat
public final class CheckedTextViewCompat
Helper for accessing CheckedTextView.
Summary
Public methods |
|
|---|---|
static @Nullable Drawable |
@ReplaceWith(expression = "textView.getCheckMarkDrawable()")This method is deprecated. Call |
static @Nullable ColorStateList |
getCheckMarkTintList(@NonNull CheckedTextView textView)Returns the tint applied to the check mark drawable |
static @Nullable PorterDuff.Mode |
getCheckMarkTintMode(@NonNull CheckedTextView textView)name android:checkMarkTintMode |
static void |
setCheckMarkTintList(Applies a tint to the check mark drawable. |
static void |
setCheckMarkTintMode(Specifies the blending mode used to apply the tint specified by |
Public methods
@ReplaceWith(expression = "textView.getCheckMarkDrawable()")
public static @Nullable DrawablegetCheckMarkDrawable(@NonNull CheckedTextView textView)
Returns the drawable used as the check mark image
| See also | |
|---|---|
setCheckMarkDrawable |
getCheckMarkTintList
public static @Nullable ColorStateList getCheckMarkTintList(@NonNull CheckedTextView textView)
Returns the tint applied to the check mark drawable
| See also | |
|---|---|
setCheckMarkTintList |
getCheckMarkTintMode
public static @Nullable PorterDuff.Mode getCheckMarkTintMode(@NonNull CheckedTextView textView)
name android:checkMarkTintMode
| Returns | |
|---|---|
@Nullable PorterDuff.Mode |
the blending mode used to apply the tint to the check mark drawable |
| See also | |
|---|---|
setCheckMarkTintMode |
setCheckMarkTintList
public static void setCheckMarkTintList(
@NonNull CheckedTextView textView,
@Nullable ColorStateList tint
)
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 | |
|---|---|
@NonNull CheckedTextView textView |
CheckedTextView for which to apply the tint. |
@Nullable ColorStateList tint |
the tint to apply, may be |
| See also | |
|---|---|
setCheckMarkTintList |
setCheckMarkTintMode
public static void setCheckMarkTintMode(
@NonNull CheckedTextView textView,
@Nullable PorterDuff.Mode tintMode
)
Specifies the blending mode used to apply the tint specified by setCheckMarkTintList} to the check mark drawable. The default mode is SRC_IN.
| Parameters | |
|---|---|
@NonNull CheckedTextView textView |
CheckedTextView for which to apply the tint mode. |
@Nullable PorterDuff.Mode tintMode |
the blending mode used to apply the tint, may be |
| See also | |
|---|---|
getCheckMarkTintMode |
|
setTintMode |