A clean collection of views used for forms with excellent support for individual and combined validity.
Clean TextViews with validation callbacks providing for a clean and easy form validator. Also support for Asynchronous callbacks providing a loading animation while we can validate with server.Gradle
dependencies {
compile 'com.ritesh:customfieldviews:1.3.1'
}
- Clean look with support for asynchronous callbacks
- Easy to implement
Define 'app' namespace on root view in your layout
xmlns:app="http://schemas.android.com/apk/res-auto"
Include this library in your layout
<com.ritesh.customfieldviews.CustomTextView
android:id="@+id/activity_main_text_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
app:editable="false"
app:hint="Email" />
XML Attribut | View Supported in | Description |
---|---|---|
app:hint | All | Hint text that slides up as label. |
app:text | CustomTextView | Prefilled text. |
app:password | CustomTextView | Applies a monospace password field. |
app:editable | CustomTextView | Set Editable flag for TextView. |
android:inputType | CustomTextView | Sets teh input type of TextView. |
app:title | CustomDateView | Sets the title of DatePicker. |
android:entries | CustomSpinnerView | Set array resource to spinner. |
Please have a look at the sample project for further use cases.
- Add support for customization
- Add transition animations
- Butter Knife - View Injection Library
- AVLoadingIndicatorView - Collection of nice loading animations for Android.
- Fork the repo
- create a branch
git checkout -b my_branch
- Add your changes
- Commit your changes:
git commit -am "Added some awesome stuff"
- Push your branch:
git push origin my_branch
- Make a pull request to
develop
branch
- 1.0.0 : Create library
- 1.1.0 : Removed redundancy while initializing form views.
- 1.2.0 : Added option to set minimum date to custom text view.
- 1.3.1 : Removed redundancy while initializing callbacks.
If you have a better idea or way on this project, please let me know, thanks :)
This project is licensed under the MIT License - see the LICENSE.md file for details