The library is made from the concept which is just an example of how this can be implemented.
How it works:
Example:
<pc.dd.password_view.PasswordEditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/passwordEditText"
app:showBottomTips="true"
app:cardProgressColor="@color/green"/>
To use from code
passwordEditText.onTextChanged { t -> Log.e(javaClass.name, t) }
passwordEditText.onValidate = { validate -> Log.e(javaClass.name, validate.toString())}
How to
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.followthemoney1:PasswordEditText:{version}'
}