Skip to content

riteshakya037/CustomFormViews

Repository files navigation

API Open Source Love Open Source Love Download

Codacy Badge Code Climate Issue Count

Clean Form Views

A clean collection of views used for forms with excellent support for individual and combined validity.

Demo

Clean Form Views (APK)

Custom Text View

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.

Custom Date View

Custom Spinner View

Installation

Gradle

dependencies {
    compile 'com.ritesh:customfieldviews:1.3.1'
}

Feature

  • Clean look with support for asynchronous callbacks
  • Easy to implement

Usage

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" />

Supported Attributs

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.

Future Works

  • Add support for customization
  • Add transition animations

Libraries Used

Contrbute

  • 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

Changelog

  • 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.

Contact me

If you have a better idea or way on this project, please let me know, thanks :)

Email

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A clean collection of views used for forms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages