TextInputEditText

public class TextInputEditText
extends AppCompatEditText

java.lang.Object
   ↳ AppCompatEditText
     ↳ com.google.android.material.textfield.TextInputEditText


A special sub-class of EditText designed for use as a child of TextInputLayout.

Using this class allows us to display a hint in the IME when in 'extract' mode.

Summary

Public constructors

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

Public methods

InputConnection onCreateInputConnection(EditorInfo outAttrs)

Inherited methods

From class java.lang.Object

Public constructors

TextInputEditText

TextInputEditText (Context context)

Parameters
context Context

TextInputEditText

TextInputEditText (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

TextInputEditText

TextInputEditText (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Public methods

onCreateInputConnection

InputConnection onCreateInputConnection (EditorInfo outAttrs)

Parameters
outAttrs EditorInfo

Returns
InputConnection