lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

belongs to Maven artifact androidx.appcompat:appcompat:1.0.0-alpha3

AppCompatCheckedTextView

public class AppCompatCheckedTextView
extends CheckedTextView

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.CheckedTextView
         ↳ androidx.appcompat.widget.AppCompatCheckedTextView


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

This will automatically be used when you use CheckedTextView in your layouts and the top-level activity / dialog is provided by appcompat. You should only need to manually use this class when writing custom views.

Summary

Inherited constants

Inherited fields

Public constructors

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

Public methods

InputConnection onCreateInputConnection(EditorInfo outAttrs)
void setCheckMarkDrawable(int resId)
void setCustomSelectionActionModeCallback(ActionMode.Callback actionModeCallback)

See TextViewCompat.setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

void setTextAppearance(Context context, int resId)

Protected methods

void drawableStateChanged()

Inherited methods

Public constructors

AppCompatCheckedTextView

public AppCompatCheckedTextView (Context context)

Parameters
context Context

AppCompatCheckedTextView

public AppCompatCheckedTextView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

AppCompatCheckedTextView

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

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Public methods

onCreateInputConnection

public InputConnection onCreateInputConnection (EditorInfo outAttrs)

Parameters
outAttrs EditorInfo

Returns
InputConnection

setCheckMarkDrawable

public void setCheckMarkDrawable (int resId)

Parameters
resId int

setCustomSelectionActionModeCallback

public void setCustomSelectionActionModeCallback (ActionMode.Callback actionModeCallback)

See TextViewCompat.setCustomSelectionActionModeCallback(TextView, ActionMode.Callback)

Parameters
actionModeCallback ActionMode.Callback

setTextAppearance

public void setTextAppearance (Context context, 
                int resId)

Parameters
context Context

resId int

Protected methods

drawableStateChanged

protected void drawableStateChanged ()