Android learns to use gesture unlocking function in 5 seconds
Android gesture unlock
This article describes a gesture unlocking library, which can customize the display of hidden grid points, paths, and a small nine grid display diagram, and vibration! Let you learn to use this simple and efficient library!
Let's start with a wave of effect display:
Gesture unlocking effect
Today, I'd like to introduce a gesture unlocking open source library made by my conscience. If you have any suggestions and ideas, you can send them to my email: diosamolee2014@gmail.com Or comments, I will provide you with my best help!
GitHub address:
https://github.com/Diosamo/Gesture_ Lock
Add dependency:
Added gradle
Step 1:
Step 2:
Layout usage:
Here are all the complete layouts I wrote during the test: (lazy people copy directly)
Here, you can see the layout of gesture unlocking by running it directly. You can also change the XML according to your own needs
Use configuration:
The following code is directly used in the activity: (lazy copy)
There are three modes of gesture unlocking, corresponding to setting password, verifying password and modifying password:
Corresponding callback interface settings:
Other configurations:
The image assignment is here. You can set the left, middle and right images. If they are the same, you can specify the same image. The library has its own image resources with the above image display effect!
Summary:
Easy, you can use this library to unlock gestures in 3 minutes! Feel good little partner, you can add a star to my project, or give your valuable opinions!