Skip to content

A small library including an example app which uses the 'floating label' pattern to show form validation

License

Notifications You must be signed in to change notification settings

IvanWooll/FloatingLabelValidator

Repository files navigation

FloatingLabelValidator

A small library including an example app demonstrating a concept of combining the 'floating label' pattern with form validation. Youtube video demo

This is more a proof of concept than a full blown library but if you want to use it all the files you need are in the lib folder.

<com.ivanwooll.floatinglabelvalidator.lib.FloatingLabelTextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:hint="alpha"
    app:allowEmpty="false"
    app:validatorType="alpha" />

<com.ivanwooll.floatinglabelvalidator.lib.FloatingLabelTextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:hint="numeric"
    app:allowEmpty="false"
    app:validatorType="numeric" />

<com.ivanwooll.floatinglabelvalidator.lib.FloatingLabelTextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:hint="alpha numeric"
    app:allowEmpty="false"
    app:validatorType="alphaNumeric" />

<com.ivanwooll.floatinglabelvalidator.lib.FloatingLabelTextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:hint="email"
    app:allowEmpty="false"
    app:validatorType="email" />

<com.ivanwooll.floatinglabelvalidator.lib.FloatingLabelTextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:hint="phone number"
    app:allowEmpty="false"
    app:validatorType="phone" />

About

A small library including an example app which uses the 'floating label' pattern to show form validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages