Android Field Input
Library for android. FieldInput is layout component base on ViewGroup LinearLayout for get input from user.
Installation
Add it in your root build.gradle at the end of repositories:
Add the dependency:
Usage
Define a view in your layout file:
Handle drawable click listener.
Get or do something when user is still typing text.
Set error message.
Set or get text input.
Preview
Idle
Typing
Error
Documentation
Attribute for FieldInput
Attribute Name | Default Value | Description |
---|---|---|
hint | null | For set hint of field |
focusable | true | For activate focus |
style | null | For set text appearance of text field |
textAllCaps | false | For activate field text caps |
drawableEnd | null | For put drawable in the right side |
inputType | text | For input type field |
textColor | null | For set color text field |
textSize | 14sp | For set text size field |