Implemented Matt Allen password strength indicator
I used most of Matt Allen password strength indicator code available here https://github.com/matt-allen/android-password-strength-indicator, but modified it a little bit in order to customize the view's colors through the xml.
This commit is contained in:
@@ -15,4 +15,18 @@
|
||||
</attr>
|
||||
</declare-styleable>
|
||||
|
||||
<!-- Taken from Matt Allen Password Strength View
|
||||
https://github.com/matt-allen/android-password-strength-indicator -->
|
||||
<declare-styleable name="PasswordStrengthView">
|
||||
<attr name="strength" format="enum">
|
||||
<enum name="weak" value="0" />
|
||||
<enum name="medium" value="1" />
|
||||
<enum name="strong" value="2" />
|
||||
</attr>
|
||||
<attr name="showGuides" format="boolean" />
|
||||
<attr name="color_fail" format="color" />
|
||||
<attr name="color_weak" format="color" />
|
||||
<attr name="color_strong" format="color" />
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user