We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to change color like you did in second screenshot
The text was updated successfully, but these errors were encountered:
Use these attributes in your xml layout:
app:correctStateColor="@color/md_green_A400" app:normalStateColor="@color/white" app:wrongStateColor="@color/md_red_A700"
f.ex.:
<com.andrognito.patternlockview.PatternLockView android:id="@+id/patternLockView" android:layout_width="280dp" android:layout_height="280dp" app:correctStateColor="@color/md_green_A400" app:normalStateColor="@color/white" app:wrongStateColor="@color/md_red_A700" />
then in your activity setup a listener for your PatternLockView and change it's ViewMode after you validated the pattern:
// if the pattern was correct: patternLockView.setViewMode(PatternLockView.PatternViewMode.CORRECT)
// if the pattern was wrong: patternLockView.setViewMode(PatternLockView.PatternViewMode.WRONG)
to reset the color (and pattern) just call:
patternLockView.clearPattern()
Sorry, something went wrong.
I did what you said but the color not change
No branches or pull requests
how to change color like you did in second screenshot
The text was updated successfully, but these errors were encountered: