Stay organized with collections
Save and categorize content based on your preferences.
com.google.android.material.textfield
Annotations
Interfaces
Classes
Annotations
Interfaces
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# com.google.android.material.textfield\n=====================================\n\nAnnotations\n-----------\n\n|-------------------------------------------------------------------------------------------------------------------------|---------------------------------|\n| [TextInputLayout.BoxBackgroundMode](/reference/com/google/android/material/textfield/TextInputLayout.BoxBackgroundMode) | Values for box background mode. |\n\nInterfaces\n----------\n\n|-------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TextInputLayout.LengthCounter](/reference/com/google/android/material/textfield/TextInputLayout.LengthCounter) | Interface definition for a length counter. |\n| [TextInputLayout.OnEditTextAttachedListener](/reference/com/google/android/material/textfield/TextInputLayout.OnEditTextAttachedListener) | Callback interface invoked when the view's [EditText](/reference/android/widget/EditText) is attached, or from [TextInputLayout.addOnEditTextAttachedListener(OnEditTextAttachedListener)](/reference/com/google/android/material/textfield/TextInputLayout#addOnEditTextAttachedListener(com.google.android.material.textfield.TextInputLayout.OnEditTextAttachedListener)) if the edit text is already present. |\n| [TextInputLayout.OnEndIconChangedListener](/reference/com/google/android/material/textfield/TextInputLayout.OnEndIconChangedListener) | Callback interface invoked when the view's end icon changes. |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [MaterialAutoCompleteTextView](/reference/com/google/android/material/textfield/MaterialAutoCompleteTextView) | A special sub-class of [AutoCompleteTextView](/reference/android/widget/AutoCompleteTextView) that is auto-inflated so that auto-complete text fields (e.g., for an Exposed Dropdown Menu) are accessible when being interacted through a screen reader. |\n| [TextInputEditText](/reference/com/google/android/material/textfield/TextInputEditText) | A special sub-class of [EditText](/reference/android/widget/EditText) designed for use as a child of [TextInputLayout](/reference/com/google/android/material/textfield/TextInputLayout). |\n| [TextInputLayout](/reference/com/google/android/material/textfield/TextInputLayout) | Layout which wraps a [TextInputEditText](/reference/com/google/android/material/textfield/TextInputEditText), [EditText](/reference/android/widget/EditText), or descendant to show a floating label when the hint is hidden while the user inputs text. |\n| [TextInputLayout.AccessibilityDelegate](/reference/com/google/android/material/textfield/TextInputLayout.AccessibilityDelegate) | An [TextInputLayout.AccessibilityDelegate](/reference/com/google/android/material/textfield/TextInputLayout.AccessibilityDelegate) intended to be set on an [EditText](/reference/android/widget/EditText) or [TextInputEditText](/reference/com/google/android/material/textfield/TextInputEditText) with [TextInputLayout.setTextInputAccessibilityDelegate(TextInputLayout.AccessibilityDelegate)](/reference/com/google/android/material/textfield/TextInputLayout#setTextInputAccessibilityDelegate(com.google.android.material.textfield.TextInputLayout.AccessibilityDelegate)) to provide attributes for accessibility that are managed by [TextInputLayout](/reference/com/google/android/material/textfield/TextInputLayout). |\n\n-\n\n Annotations\n -----------\n\n - [TextInputLayout.BoxBackgroundMode](/reference/com/google/android/material/textfield/TextInputLayout.BoxBackgroundMode)\n-\n\n Interfaces\n ----------\n\n - [TextInputLayout.LengthCounter](/reference/com/google/android/material/textfield/TextInputLayout.LengthCounter)\n - [TextInputLayout.OnEditTextAttachedListener](/reference/com/google/android/material/textfield/TextInputLayout.OnEditTextAttachedListener)\n - [TextInputLayout.OnEndIconChangedListener](/reference/com/google/android/material/textfield/TextInputLayout.OnEndIconChangedListener)\n-\n\n Classes\n -------\n\n - [MaterialAutoCompleteTextView](/reference/com/google/android/material/textfield/MaterialAutoCompleteTextView)\n - [TextInputEditText](/reference/com/google/android/material/textfield/TextInputEditText)\n - [TextInputLayout](/reference/com/google/android/material/textfield/TextInputLayout)\n - [TextInputLayout.AccessibilityDelegate](/reference/com/google/android/material/textfield/TextInputLayout.AccessibilityDelegate)"]]