TextInputEditText

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

Using this class allows us to display a hint in the IME when in 'extract' mode and provides accessibility support for com.google.android.material.textfield.TextInputLayout.

Note: If you programmatically construct a TextInputEditText as a child of a TextInputLayout, you should use TextInputLayout's `context` to create the view. This will allow TextInputLayout to pass along the appropriate styling to the TextInputEditText.

For more information, see the component developer guidance and design guidelines.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)

Functions

Link copied to clipboard
Link copied to clipboard
open fun getGlobalVisibleRect(@Nullable r: Rect, @Nullable globalOffset: Point): Boolean
Link copied to clipboard
Link copied to clipboard
Whether the edit text is using the TextInputLayout's focused rectangle.
Link copied to clipboard
Link copied to clipboard
open fun setTextInputLayoutFocusedRectEnabled(textInputLayoutFocusedRectEnabled: Boolean)
Whether the edit text should use the TextInputLayout's focused rectangle.