Google 致力于为黑人社区推动种族平等。查看具体举措

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