Added in API level 3

ExtractEditText


open class ExtractEditText : EditText
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.TextView
   ↳ android.widget.EditText
   ↳ android.inputmethodservice.ExtractEditText

* Specialization of EditText for showing and interacting with the extracted text in a full-screen input method.

Summary

Inherited XML attributes
Inherited constants
Public constructors

ExtractEditText(context: Context!, attrs: AttributeSet!)

ExtractEditText(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

ExtractEditText(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
open Unit

Finish making changes that will not be reported to the client.

open Boolean

Pretend like this view always has focus, so its highlight and cursor will be displayed.

open Boolean

Return true if the edit text is currently showing a scroll bar.

open Boolean

Pretend like the window this view is in always has focus, so its highlight and cursor will be displayed.

open Boolean

Pretend like this view always has focus, so its highlight and cursor will be displayed.

open Boolean

We are always considered to be an input method target.

open Boolean

open Boolean

Redirect clicks to the IME for handling there.

open Unit

Implement just to keep track of when we are setting text from the client (vs. seeing changes in ourself from the user).

open Unit

Start making changes that will not be reported to the client.

Protected methods
open Unit
onSelectionChanged(selStart: Int, selEnd: Int)

Report to the underlying text editor about selection changes.

Inherited functions
Inherited properties

Public constructors

ExtractEditText

Added in API level 3
ExtractEditText(context: Context!)

ExtractEditText

Added in API level 3
ExtractEditText(
    context: Context!,
    attrs: AttributeSet!)

ExtractEditText

Added in API level 3
ExtractEditText(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int)

ExtractEditText

Added in API level 21
ExtractEditText(
    context: Context!,
    attrs: AttributeSet!,
    defStyleAttr: Int,
    defStyleRes: Int)

Public methods

finishInternalChanges

Added in API level 3
open fun finishInternalChanges(): Unit

Finish making changes that will not be reported to the client. That is, onSelectionChanged(int,int) will not result in sending the new selection to the client

hasFocus

Added in API level 3
open fun hasFocus(): Boolean

Pretend like this view always has focus, so its highlight and cursor will be displayed.

Return
Boolean True if this view has or contains focus, false otherwise.

hasVerticalScrollBar

Added in API level 3
open fun hasVerticalScrollBar(): Boolean

Return true if the edit text is currently showing a scroll bar.

hasWindowFocus

Added in API level 3
open fun hasWindowFocus(): Boolean

Pretend like the window this view is in always has focus, so its highlight and cursor will be displayed.

Return
Boolean True if this view is in a window that currently has window focus.

isFocused

Added in API level 3
open fun isFocused(): Boolean

Pretend like this view always has focus, so its highlight and cursor will be displayed.

Return
Boolean True if this view has focus, false otherwise.

isInputMethodTarget

Added in API level 3
open fun isInputMethodTarget(): Boolean

We are always considered to be an input method target.

Return
Boolean True if the TextView is a current input method target; false otherwise.

onTextContextMenuItem

Added in API level 3
open fun onTextContextMenuItem(id: Int): Boolean
Return
Boolean true if the context menu item action was performed.

performClick

Added in API level 3
open fun performClick(): Boolean

Redirect clicks to the IME for handling there. First allows any on click handler to run, though.

Return
Boolean True there was an assigned OnClickListener that was called, false otherwise is returned.

setExtractedText

Added in API level 3
open fun setExtractedText(text: ExtractedText!): Unit

Implement just to keep track of when we are setting text from the client (vs. seeing changes in ourself from the user).

startInternalChanges

Added in API level 3
open fun startInternalChanges(): Unit

Start making changes that will not be reported to the client. That is, onSelectionChanged(int,int) will not result in sending the new selection to the client

Protected methods

onSelectionChanged

Added in API level 3
protected open fun onSelectionChanged(
    selStart: Int,
    selEnd: Int
): Unit

Report to the underlying text editor about selection changes.

Parameters
selStart Int: The new selection start location.
selEnd Int: The new selection end location.