- Can be used to see password strength
- Freely set the colour of the strength bars
- Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add this in your app's build.gradle
dependencies {
implementation 'com.github.thenishchalraj:PasswordStrengthBar:Tag'
}
- To use this in XML File, use
<com.android.thenishchalraj.passwordstrength.PasswordStrengthBar
android:id="@+id/passwordBarCheck"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"/>
- Methods of use with variable of PasswordStrengthBar
//initialize or declare
PasswordStrengthBar passwordStrengthBar;
...
//methods available
setStrengthColor(int noStrengthColor, int color1, int color2, int color3, int color4)
getMaxStrength()
getMinStrength()
setMaxStrength(int max)
setMinStrength(int min)
getStrength()
setStrength(int strength)
//
- More features related to Password and Strength bars' functionality.
- Vertical password strength bars.
Follow this medium link and start today.
Fork and make your changes/improvements. All pull requests are welcome in the dev branch. Note: do not send requests directly to master.