Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 979 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 979 Bytes

FloatingLabelLayout with custom behaviours

Forked from FloatingLabelLayout https://gist.github.com/chrisbanes/11247418, the lib provides floating text label with extra behaviors based on customizable criteria.

Demo gif

[Video] (http://youtu.be/_oNO-fIk1Ys)

You need to add this to your xml layout:

<jesusm.floatlabellayout.lib.PasswordFloatLabelLayoutCheck
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:floatLabelTextAppearance="@style/TextAppearance.YourApp.FloatLabel"
        app:showStateIcon="true">
        
        <!-- Your EditText -->
        
</jesusm.floatlabellayout.lib.PasswordFloatLabelLayoutCheck>

app:showStateIcon (false by default) indicates if you want to show an icon when your password is considered as "strong" (you can change this behavior).