FloatingLabelValidator

Additional

Language
Java
Version
N/A
Created
Mar 31, 2015
Updated
Apr 6, 2015 (Retired)
Owner
Ivan Wooll (IvanWooll)
Contributor
Ivan Wooll (IvanWooll)
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

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