An easily implementable, clean, minimal Lockscreen module for Android Apps. Design inspired by Diary ( https://play.google.com/store/apps/details?id=com.pixelcrater.Diaro )
Image1 | Image2 |
---|---|
Sharing with your friends is just one click away from here
If you like my works and want to support me/my works, feel free to support or donate. My payment details can be found here: https://p32929.github.io/SendMoney2Me/
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.p32929:AndroidAppLockscreen:1.2'
}
Steps to follow:
- Extend all
Activities
byLockscreenHandler
- Add
EasyLock.checkPassword(this);
in yourMainActivity
'sonCreate
method (or whichever activity starts at first)
After that you can:
- Set password
- Set background color
- Check password
- Change password
- Disable password
Step 1: * Extend all Activities
by LockscreenHandler
like this:
public class MainActivity extends LockscreenHandler {
// ............................................
}
Step 2: Add EasyLock.checkPassword(this);
in your MainActivity
's onCreate
method (or whichever activity starts at first) like this:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
EasyLock.checkPassword(this);
}
- To set a password, call
EasyLock.setPassword();
- To set background color, call
EasyLock.setBackgroundColor();
- To check password, call
EasyLock.checkPassword();
- To change password, call
EasyLock.changePassword();
- To disable password, call
EasyLock.disablePassword();
- To see if clicked on Forgot password call
EasyLock.forgotPassword()
with anew View.OnClickListener()
Check out the app in the repository for more info :) Enjoy...
MIT License
Copyright (c) 2018 Fayaz Bin Salam
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.