Skip to content

Most visited

Recently visited

navigation
added in version 24.1.0
belongs to Maven artifact com.android.support:design:27.0.0

TextInputEditText

public class TextInputEditText
extends AppCompatEditText

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.EditText
         ↳ android.support.v7.widget.AppCompatEditText
           ↳ android.support.design.widget.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

Inherited constants

From class android.widget.TextView
From class android.view.View

Inherited fields

From class android.view.View

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 android.support.v7.widget.AppCompatEditText
From class android.widget.EditText
From class android.widget.TextView
From class android.view.View
From class java.lang.Object
From interface android.support.v4.view.TintableBackgroundView
From interface android.view.ViewTreeObserver.OnPreDrawListener
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public constructors

TextInputEditText

added in version 24.1.0
TextInputEditText (Context context)

Parameters
context Context

TextInputEditText

added in version 24.1.0
TextInputEditText (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

TextInputEditText

added in version 24.1.0
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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)