The methods of Android.Widget.TextView are listed below. For a list of all members, see the TextView Members list.
See Also: Inherited members from Android.Views.View
AddTextChangedListener(Android.Text.ITextWatcher)Adds a TextWatcher to the list of those whose methods are called whenever this TextView's text changes. | ||
Append(Java.Lang.ICharSequence)Convenience method: Append the specified text to the TextView's display buffer, upgrading it to BufferType. | ||
Append(string)Documentation for this section has not yet been entered. | ||
Append(Java.Lang.ICharSequence, int, int)Convenience method: Append the specified text slice to the TextView's display buffer, upgrading it to BufferType. | ||
Append(string, int, int)Documentation for this section has not yet been entered. | ||
BeginBatchEdit() | ||
BringPointIntoView(int)Move the point, specified by the offset, into the view if it is needed. | ||
ClearComposingText()Use Android.Views.InputMethods.BaseInputConnection.RemoveComposingSpans(Android.Text.ISpannable) to remove any IME composing state from this text view. | ||
Debug(int)Prints information about this view in the log output, with the tag Android.Views.View.ViewLogTag. | ||
DidTouchFocusSelect()Returns true, only while processing a touch gesture, if the initial touch down event caused focus to move to the text view and as a result its selection changed. | ||
EndBatchEdit() | ||
ExtractText(Android.Views.InputMethods.ExtractedTextRequest, Android.Views.InputMethods.ExtractedText)If this TextView contains editable content, extract a portion of it based on the information in request in to outText. | ||
GetCompoundDrawables()Returns drawables for the left, top, right, and bottom borders. | ||
GetCompoundDrawablesRelative()Returns drawables for the start, top, end, and bottom borders. | ||
GetFilters()Returns the current list of input filters. | ||
GetInputExtras(bool)Retrieve the input extras currently associated with the text view, which can be viewed as well as modified. | ||
GetLineBounds(int, Android.Graphics.Rect)Return the baseline for the specified line (0...getLineCount() - 1) If bounds is not null, return the top, left, right, bottom extents of the specified line in it. | ||
GetOffsetForPosition(float, float)Get the character offset closest to the specified absolute position. | ||
static | GetTextColor(Android.Content.Context, Android.Content.Res.TypedArray, int)Documentation for this section has not yet been entered. | |
static | GetTextColor(Android.Content.Context, Android.Content.Res.TypedArray, int)Returns the default color from the TextView_textColor attribute from the AttributeSet, if set, or the default color from the TextAppearance_textColor from the TextView_textAppearance attribute, if TextView_textColor was not set directly. | |
static | GetTextColors(Android.Content.Context, Android.Content.Res.TypedArray)Returns the TextView_textColor attribute from the TypedArray, if set, or the TextAppearance_textColor from the TextView_textAppearance attribute, if TextView_textColor was not set directly. | |
GetUrls()Returns the list of URLSpans attached to the text (by Android.Text.Util.Linkify or otherwise) if any. | ||
Length()Returns the length, in characters, of the text managed by this TextView | ||
MoveCursorToVisibleOffset()Move the cursor, if needed, so that it is at an offset that is visible to the user. | ||
OnBeginBatchEdit()Called by the framework in response to a request to begin a batch of edit operations through a call to link TextView.BeginBatchEdit. | ||
OnCommitCompletion(Android.Views.InputMethods.CompletionInfo)Called by the framework in response to a text completion from the current input method, provided by it calling Android.Views.InputMethods.InputConnection.commitCompletion(android.view.inputmethod.CompletionInfo). | ||
OnCommitCorrection(Android.Views.InputMethods.CorrectionInfo)Called by the framework in response to a text auto-correction (such as fixing a typo using a a dictionnary) from the current input method, provided by it calling Android.Views.InputMethods.InputConnection.commitCorrection(android.view.inputmethod.CorrectionInfo) InputConnection.commitCorrection()}. | ||
OnEditorAction(Android.Views.InputMethods.ImeAction)Called when an attached input method calls Android.Views.InputMethods.InputConnection.performEditorAction(int) for this text view. | ||
OnEndBatchEdit()Called by the framework in response to a request to end a batch of edit operations through a call to link TextView.EndBatchEdit. | ||
OnPreDraw()Callback method to be invoked when the view tree is about to be drawn. | ||
OnPrivateIMECommand(string, Android.OS.Bundle)Called by the framework in response to a private command from the current method, provided by it calling Android.Views.InputMethods.InputConnection.performPrivateCommand(java.lang.String, android.os.Bundle). | ||
OnRestoreInstanceState(Android.OS.IParcelable)Hook allowing a view to re-apply a representation of its internal state that had previously been generated by Android.Views.View.OnSaveInstanceState. | ||
OnSaveInstanceState()Hook allowing a view to generate a representation of its internal state that can later be used to create a new instance with that same state. | ||
OnTextContextMenuItem(int)Called when a context menu option for the text view is selected. | ||
RemoveTextChangedListener(Android.Text.ITextWatcher)Removes the specified TextWatcher from the list of those whose methods are called whenever this TextView's text changes. | ||
SetAllCaps(bool)Sets the properties of this field to transform input to ALL CAPS display. | ||
SetCompoundDrawables(Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable)Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text. | ||
SetCompoundDrawablesRelative(Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable)Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. | ||
SetCompoundDrawablesRelativeWithIntrinsicBounds(Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable)Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. | ||
SetCompoundDrawablesRelativeWithIntrinsicBounds(int, int, int, int)Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. | ||
SetCompoundDrawablesWithIntrinsicBounds(Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable, Android.Graphics.Drawables.Drawable)Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text. | ||
SetCompoundDrawablesWithIntrinsicBounds(int, int, int, int)Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text. | ||
SetCursorVisible(bool)Set whether the cursor is visible. | ||
SetEditableFactory(Android.Text.EditableFactory)Sets the Factory used to create new Editables. | ||
SetElegantTextHeight(bool)Set the TextView's elegant height metrics flag. | ||
SetEms(int)Makes the TextView exactly this many ems wide | ||
SetError(Java.Lang.ICharSequence, Android.Graphics.Drawables.Drawable)Sets the right-hand compound drawable of the TextView to the specified icon and sets an error message that will be displayed in a popup when the TextView has focus. | ||
SetError(string, Android.Graphics.Drawables.Drawable)Documentation for this section has not yet been entered. | ||
SetExtractedText(Android.Views.InputMethods.ExtractedText)Apply to this text view the given extracted text, as previously returned by TextView.ExtractText(Android.Views.InputMethods.ExtractedTextRequest, Android.Views.InputMethods.ExtractedText). | ||
SetFilters(Android.Text.IInputFilter[])Sets the list of input filters that will be used if the buffer is Editable. | ||
SetHeight(int)Makes the TextView exactly this many pixels tall. | ||
SetHighlightColor(Android.Graphics.Color)Sets the color used to display the selection highlight. | ||
SetHint(int)Sets the text to be displayed when the text of the TextView is empty, from a resource. | ||
SetHintTextColor(Android.Content.Res.ColorStateList)Sets the color of the hint text. | ||
SetHintTextColor(Android.Graphics.Color)Sets the color of the hint text for all the states (disabled, focussed, selected...) of this TextView. | ||
SetHorizontallyScrolling(bool)Sets whether the text should be allowed to be wider than the View is. | ||
SetImeActionLabel(Java.Lang.ICharSequence, Android.Views.InputMethods.ImeAction)Change the custom IME action associated with the text view, which will be reported to an IME with Android.Views.InputMethods.EditorInfo.ActionLabel and Android.Views.InputMethods.EditorInfo.ActionId when it has focus. | ||
SetImeActionLabel(string, Android.Views.InputMethods.ImeAction)Documentation for this section has not yet been entered. | ||
SetIncludeFontPadding(bool)Set whether the TextView includes extra top and bottom padding to make room for accents that go above the normal ascent and descent. | ||
SetInputExtras(int)Set the extra input data of the text, which is the Android.Views.InputMethods.EditorInfo.Extras Bundle that will be filled in when creating an input connection. | ||
SetLines(int)Makes the TextView exactly this many lines tall. | ||
SetLineSpacing(float, float)Sets line spacing for this TextView. | ||
SetLinkTextColor(Android.Content.Res.ColorStateList)Sets the color of links in the text. | ||
SetLinkTextColor(Android.Graphics.Color)Sets the color of links in the text. | ||
SetMarqueeRepeatLimit(int)Sets how many times to repeat the marquee animation. | ||
SetMaxEms(int)Makes the TextView at most this many ems wide | ||
SetMaxHeight(int)Makes the TextView at most this many pixels tall. | ||
SetMaxLines(int)Makes the TextView at most this many lines tall. | ||
SetMaxWidth(int)Makes the TextView at most this many pixels wide | ||
SetMinEms(int)Makes the TextView at least this many ems wide | ||
SetMinHeight(int)Makes the TextView at least this many pixels tall. | ||
SetMinLines(int)Makes the TextView at least this many lines tall. | ||
SetMinWidth(int)Makes the TextView at least this many pixels wide | ||
SetOnEditorActionListener(TextView.IOnEditorActionListener)Set a special listener to be called when an action is performed on the text view. | ||
override | SetPaddingRelative(int, int, int, int)Sets the relative padding. | |
SetRawInputType(Android.Text.InputTypes)Directly change the content type integer of the text view, without modifying any other state. | ||
SetScroller(Scroller) | ||
SetSelectAllOnFocus(bool)Set the TextView so that when it takes focus, all the text is selected. | ||
SetShadowLayer(float, float, float, Android.Graphics.Color)Gives the text a shadow of the specified blur radius and color, the specified distance from its drawn position. | ||
SetSingleLine()Sets the properties of this field (lines, horizontally scrolling, transformation method) to be for a single-line input. | ||
SetSingleLine(bool)If true, sets the properties of this field (number of lines, horizontally scrolling, transformation method) to be for a single-line input; if false, restores these to the default conditions. | ||
SetSpannableFactory(Android.Text.SpannableFactory)Sets the Factory used to create new Spannables. | ||
SetText(int) | ||
SetText(Java.Lang.ICharSequence, TextView.BufferType)Sets the text that this TextView is to display (see TextView.TextFormatted) and also sets whether it is stored in a styleable/spannable buffer and whether it is editable. | ||
SetText(int, TextView.BufferType) | ||
SetText(string, TextView.BufferType)Documentation for this section has not yet been entered. | ||
SetText(char[], int, int)Sets the TextView to display the specified slice of the specified char array. | ||
SetTextAppearance(Android.Content.Context, int)Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource. | ||
SetTextColor(Android.Content.Res.ColorStateList)Sets the text color. | ||
SetTextColor(Android.Graphics.Color)Sets the text color for all the states (normal, selected, focused) to be this color. | ||
SetTextIsSelectable(bool)Sets whether the content of this view is selectable by the user. | ||
SetTextKeepState(Java.Lang.ICharSequence)Like TextView.TextFormatted, except that the cursor position (if any) is retained in the new text. | ||
SetTextKeepState(string)Documentation for this section has not yet been entered. | ||
SetTextKeepState(Java.Lang.ICharSequence, TextView.BufferType)Like TextView.SetText(Java.Lang.ICharSequence, .BufferType), except that the cursor position (if any) is retained in the new text. | ||
SetTextKeepState(string, TextView.BufferType)Documentation for this section has not yet been entered. | ||
SetTextSize(Android.Util.ComplexUnitType, float)Set the default text size to a given unit and value. | ||
SetTypeface(Android.Graphics.Typeface, Android.Graphics.TypefaceStyle)Sets the typeface and style in which the text should be displayed, and turns on the fake bold and italic bits in the Paint if the Typeface that you provided does not have all the bits in the style that you specified. | ||
SetWidth(int)Makes the TextView exactly this many pixels wide. |
OnSelectionChanged(int, int)This method is called when the selection has changed, in case any subclasses would like to know. | ||
OnTextChanged(Java.Lang.ICharSequence, int, int, int)This method is called when the text is changed, in case any subclasses would like to know. | ||
OnTextChanged(string, int, int, int)Documentation for this section has not yet been entered. | ||
ResetResolvedDrawables()Documentation for this section has not yet been entered. | ||
ResetResolvedLayoutDirection()Documentation for this section has not yet been entered. | ||
ResolveDrawables()Documentation for this section has not yet been entered. | ||
ResolveTextDirection()Documentation for this section has not yet been entered. | ||
SetFrame(int, int, int, int)Assign a size and position to this view. |