Text Input Field Layout
An abstract class that provide floating label when the hint is hidden due to user inputting text.
Since
1.0.0
Inheritors
Functions
Returns the current {@link EndIconMode}.
Returns the helper message that was set to be displayed with setHelperText(CharSequence), or null if no helper text was set or if helper text functionality is not enabled.
Returns the hint that is displayed when the text of the TextView is empty.
Gets the collapsed hint text color.
Returns the bottom padding of this view. If there are inset and enabled scrollbars, this value may include the space required to display the scrollbars as well.
Returns the end padding of this view depending on its resolved layout direction. If there are inset and enabled scrollbars, this value may include the space required to display the scrollbars as well.
Returns the left padding of this view. If there are inset and enabled scrollbars, this value may include the space required to display the scrollbars as well.
Returns the right padding of this view. If there are inset and enabled scrollbars, this value may include the space required to display the scrollbars as well.
Returns the start padding of this view depending on its resolved layout direction. If there are inset and enabled scrollbars, this value may include the space required to display the scrollbars as well.
Returns the top padding of this view.
Returns the typeface used for the hint and any label views (such as counter and error views).
Set the filled box's background color.
Set the box background mode (filled, outline, or none).
Set the box's corner radii.
Set the outline box's stroke color.
Set the outline box's stroke color state list.
Whether the character counter functionality is enabled or not in this layout.
Sets the max length to display at the character counter.
Sets the text color and size for the overflowed character counter using the specified TextAppearance resource.
Sets the text color and size for the character counter using the specified TextAppearance resource.
Set the icon to use for the end icon.
Applies a tint to the end icon drawable. Does not modify the current tint mode, which is PorterDuff.Mode#SRC_IN by default.
Set up the EndIconMode. When set, a button is placed at the end of the EditText which enables the user to perform the specific icon's functionality.
Sets the end icon's functionality that is performed when the icon is clicked. The icon will not be clickable if its click and long click listeners are null.
Sets an error message that will be displayed below our EditText. If the error is null, the error message will be cleared.
Whether the error functionality is enabled or not in this layout. Enabling this functionality before setting an error message via {@link #setError(CharSequence)}, will mean that this layout will not change size when an error is displayed.
Sets the text color and size for the error message from the specified TextAppearance resource.
Sets a helper message that will be displayed below the {@link EditText}. If the helperText is null, the helper text functionality will be disabled and the helper message will be hidden.
Sets the text color and size for the helper text from the specified TextAppearance resource.
Sets the text to be displayed when the text of the TextView is empty, from a resource.
Sets the text to be displayed when the text of the TextView is empty. Null means to use the normal empty text. The hint does not currently participate in determining the size of the view.
Set whether any hint state changes, due to being focused or non-empty text, are animated.
Sets whether the floating label functionality is enabled or not in this layout.
Sets the collapsed hint text color, size, style from the specified TextAppearance resource.
Sets the collapsed hint text color from the specified ColorStateList resource.
Sets the padding. The view may add on the space required to display the scrollbars, depending on the style and visibility of the scrollbars. So the values returned from getPaddingLeft, getPaddingTop, getPaddingRight and getPaddingBottom may be different from the values set in this call.
Enables or disable the password visibility toggle functionality.
Set the icon to use for the password visibility toggle button.
Applies a tint to the password visibility toggle drawable. Does not modify the current tint mode, which is PorterDuff.Mode#SRC_IN by default.
Sets the start icon.
Applies a tint to the start icon drawable. Does not modify the current tint mode, which is {@link PorterDuff.Mode#SRC_IN} by default.
Sets the start icon's functionality that is performed when the start icon is clicked. The icon will not be clickable if its click and long click listeners are null.
Sets the typeface and style in which the text should be displayed.