AppCompatTextView

public class AppCompatTextView
extends TextView implements TintableBackgroundView, TintableCompoundDrawablesView, EmojiCompatConfigurationView

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


A TextView which supports compatible features on older versions of the platform, including:

This will automatically be used when you use TextView 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

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

Public methods

ActionMode.Callback getCustomSelectionActionModeCallback()
int getFirstBaselineToTopHeight()
int getLastBaselineToBottomHeight()
CharSequence getText()
TextClassifier getTextClassifier()

Returns the TextClassifier used by this TextView.

PrecomputedTextCompat.Params getTextMetricsParamsCompat()

Gets the parameters for text layout precomputation, for use with PrecomputedTextCompat.

boolean isEmojiCompatEnabled()
InputConnection onCreateInputConnection(EditorInfo outAttrs)
void setAllCaps(boolean a