Best code examples for TextView endBatchEdit method (android.widget.TextView.endBatchEdit)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for TextView endBatchEdit method.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

TextView endBatchEdit examples from Open Source projects
This code example shows how to use the following methods: beginBatchEdit, endBatchEdit, onTextContextMenuItem
145:	mTextView.beginBatchEdit(); 
146:	mTextView.onTextContextMenuItem(id); 
147:	mTextView.endBatchEdit(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: beginBatchEdit, endBatchEdit, onCommitCorrection
129:	mTextView.beginBatchEdit(); 
130:	mTextView.onCommitCorrection(correctionInfo); 
131:	mTextView.endBatchEdit(); 
Full Snippet Info
7
CodeRank
Displays text to the user and optionally allows them to edit it. A TextView is a complete text editor, however the basic class is configured to not allow editing; see EditText for a subclass that configures the text view for editing.

To allow users to copy some or all of the TextView's value and paste it somewhere else, set the XML attribute android:textIsSelectable to "true" or call setTextIsSelectable(true). The textIsSelectable flag allows users to make selection gestures in the TextView, which in turn triggers the system's built-in copy/paste controls....
endBatchEdit Method Overview
See Also
  • addTextChangedListener
    Adds a TextWatcher to the list of those whose methods are called whenever this TextView's text changes.
  • append
    Convenience method: Append the specified text to the TextView's display buffer, upgrading it to BufferType.EDITABLE if it was not already editable.
  • extractText
    If this TextView contains editable content, extract a portion of it based on the information in request in to outText.
  • getError
    Returns the error message that was set to be displayed with setError(CharSequence), or null if no error was set or if it the error was cleared by the widget after user input.
  • getGravity
    Returns the horizontal and vertical alignment of this TextView.
  • getLinksClickable
    Returns whether the movement method will automatically be set to LinkMovementMethod if setAutoLinkMask(int) has been set to nonzero and links are detected in setText(char[], int, int).
  • getText
    Return the text the TextView is displaying.
  • getTextColors
    Gets the text colors for the different states (normal, selected, focused) of the TextView.
  • length
    Returns the length, in characters, of the text managed by this TextView
  • onCommitCompletion
    Called by the framework in response to a text completion from the current input method, provided by it calling InputConnection.commitCompletion().
  • onCommitCorrection
    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 commitCorrection(CorrectionInfo) InputConnection.commitCorrection()}.
  • onTouchEvent
    Implement this method to handle touch screen motion events.
  • removeTextChangedListener
    Removes the specified TextWatcher from the list of those whose methods are called whenever this TextView's text changes.
  • setCompoundDrawables
    Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text.
  • setEllipsize
    Causes words in the text that are longer than the view is wide to be ellipsized instead of broken in the middle.
  • setError
    Sets the right-hand compound drawable of the TextView to the "error" icon and sets an error message that will be displayed in a popup when the TextView has focus.
  • setFilters
    Sets the list of input filters that will be used if the buffer is Editable.
  • setGravity
    Sets the horizontal alignment of the text and the vertical gravity that will be used when there is extra space in the TextView beyond what is required for the text itself.
  • setHeight
    Makes the TextView exactly this many pixels tall.
  • setHint
    Sets the text to be displayed when the text of the TextView is empty.
  • setImeOptions
    Change the editor type integer associated with the text view, which will be reported to an IME with imeOptions when it has focus.
  • setInputType
    Set the type of the content with a constant as defined for inputType.
  • setLines
    Makes the TextView exactly this many lines tall.
  • setMaxHeight
    Makes the TextView at most this many pixels tall.
  • setMaxLines
    Makes the TextView at most this many lines tall.
  • setMaxWidth
    Makes the TextView at most this many pixels wide
  • setMinLines
    Makes the TextView at least this many lines tall.
  • setMinWidth
    Makes the TextView at least this many pixels wide
  • setMovementMethod
    Sets the movement method (arrow key handler) to be used for this TextView.
  • setPaintFlags
    Sets flags on the Paint being used to display the text and reflows the text if they are different from the old flags.
  • setRawInputType
    Directly change the content type integer of the text view, without modifying any other state.
  • setShadowLayer
    Gives the text a shadow of the specified radius and color, the specified distance from its normal position.
  • setSingleLine
    Sets the properties of this field (lines, horizontally scrolling, transformation method) to be for a single-line input.
  • setTextAppearance
    Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource.
  • setTextSize
    Set the default text size to the given value, interpreted as "scaled pixel" units.
  • setTypeface
    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
    Makes the TextView exactly this many pixels wide.