Android APIs
public class

AppCompatCheckedTextView

extends CheckedTextView
java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.CheckedTextView
         ↳ android.support.v7.widget.AppCompatCheckedTextView

Class Overview

A CheckedTextView which supports compatible features on older version of the platform.

This will automatically be used when you use CheckedTextView in your layouts. You should only need to manually use this class when writing custom views.

Summary

[Expand]
Inherited XML Attributes
From class android.widget.CheckedTextView
From class android.widget.TextView
From class android.view.View
[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
AppCompatCheckedTextView(Context context)
AppCompatCheckedTextView(Context context, AttributeSet attrs)
AppCompatCheckedTextView(Context context, AttributeSet attrs, int defStyleAttr)
Public Methods
void setCheckMarkDrawable(int resId)
Sets the check mark to the drawable with the specified resource ID.
[Expand]
Inherited Methods
From class android.widget.CheckedTextView
From class android.widget.TextView
From class android.view.View
From class java.lang.Object
From interface android.widget.Checkable
From interface android.view.ViewTreeObserver.OnPreDrawListener
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public AppCompatCheckedTextView (Context context)

public AppCompatCheckedTextView (Context context, AttributeSet attrs)

public AppCompatCheckedTextView (Context context, AttributeSet attrs, int defStyleAttr)

Public Methods

public void setCheckMarkDrawable (int resId)

Sets the check mark to the drawable with the specified resource ID.

When this view is checked, the drawable's state set will include state_checked.

Parameters
resId the resource identifier of drawable to use as the check mark