Material Design text field that comes in a box, based on (OLD) Google Material Design guidelines.
fix issue #31 #32.
add giveFocus
param in setError()
for setting whether the field will gain focus when set error on.
add secondaryColor
for setting the color of the underline, the floating label text and the icon signifier when NOT HAVING focus (opposite to primaryColor
).
add counterColor
for setting the color of the counter text.
fix issue #25.
add giveFocus
param in setError()
for setting whether the field will gain focus when set error on.
add app:isResponsiveIconColor
attribute for setting, in xml, whether the icon signifier will change its color when gaining or losing focus in.
set icon signifier and end icon with drawable (PR #23).
the "EditText" part is now seperated from the TextFieldBoxes. TextFieldBoxes is now a container (just like a TextInputLayout
) that should and should only contain one ExtendedEditText
that inherents the TextInputEditText
.
Prefix
and Suffix
attributes are now belonging to the ExtendedEditText
.
Text
, hint
, SingleLine
and MaxLines
attributes are now removed. Instead, one should set them in the ExtendedEditText
with original android:
attributes.
the bottom view which contains helper and counter labels will now be hidden when it's empty.
fix the bug of when height (or width) is set to wrap_content
yet fills up the whole space.
old hint
attribute is renamed to labelText
.
current hint
attribute is for the placeholder text that is shown in the field when there is no text and is on focus.
add Clear Button, can be activated with app:hasClearButton
in xml or setHasClearButton(boolean hasClearButton)
in Java code.
add End Icon, can be activated with app:endIcon
in xml or setEndIcon(Int resourceID)
in Java code. Use getEndIconImageButton()
to do something useful with it.