Class of android.widget · TextView.java · Android's reference
public class TextView extends View
TextView ← View
A view of text: one StaticLayout of it, with compound drawables around it.
public static final int AUTO_SIZE_TEXT_TYPE_NONE = 0 sourcepublic static final int AUTO_SIZE_TEXT_TYPE_UNIFORM = 1 sourcepublic TextView(Context context) sourcepublic TextView(Context context, AttributeSet attrs) sourcepublic TextView(Context context, AttributeSet attrs, int defStyleAttr) sourcepublic TextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) sourcepublic void setText(CharSequence text) sourcepublic final void setTextKeepState(CharSequence text) sourcesetText that keeps the selection, cut to the new text's length
public final void setTextKeepState(CharSequence text, BufferType type) sourcepublic final void setShowSoftInputOnFocus(boolean show) sourcepublic final boolean getShowSoftInputOnFocus() sourcepublic void setText(CharSequence text, BufferType type) sourcepublic final void setText(char[] text, int start, int len) sourcepublic final void setText(int resid) sourcepublic final void setText(int resid, BufferType type) sourcepublic CharSequence getText() sourcepublic int length() sourcepublic Editable getEditableText() sourceprotected boolean getDefaultEditable() sourcepublic final void setEditableFactory(Editable.Factory factory) sourcepublic final void setSpannableFactory(Spannable.Factory factory) sourcepublic void setTextAlignment(int textAlignment) sourcepublic final void setHint(CharSequence hint) sourcepublic final void setHint(int resid) sourcepublic CharSequence getHint() sourcepublic void addTextChangedListener(TextWatcher watcher) sourcepublic void removeTextChangedListener(TextWatcher watcher) sourceprotected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) empty body sourcepublic void beginBatchEdit() sourcepublic void endBatchEdit() sourcepublic int getSelectionStart() sourcepublic int getSelectionEnd() sourcepublic boolean hasSelection() sourcepublic boolean onTextContextMenuItem(int id) sourcepublic void setCustomSelectionActionModeCallback(ActionMode.Callback actionModeCallback) sourcepublic ActionMode.Callback getCustomSelectionActionModeCallback() sourcepublic void setHighlightColor(int color) sourcepublic int getHighlightColor() sourcepublic void setTextClassifier(TextClassifier textClassifier) sourcepublic TextClassifier getTextClassifier() sourcepublic void setInputType(int type) sourcepublic void setRawInputType(int type) sourcepublic int getInputType() sourcepublic void setImeOptions(int imeOptions) sourcepublic int getImeOptions() sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.