An easily implementable, clean, minimal lockscreen library for Android apps — PIN entry, set/change/disable password, custom background colour. Design inspired by Diaro.
| Image1 | Image2 |
|---|---|
![]() |
![]() |
Add JitPack to your root build.gradle:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}Add the dependency:
dependencies {
implementation 'com.github.p32929:AndroidAppLockscreen:1.2'
}Two steps:
- Extend all your
Activityclasses fromLockscreenHandler - Call
EasyLock.checkPassword(this);in theonCreateof whichever activity starts first
public class MainActivity extends LockscreenHandler {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
EasyLock.checkPassword(this);
}
}| Call | What it does |
|---|---|
EasyLock.setPassword() |
Set a new password |
EasyLock.checkPassword() |
Show the lockscreen and verify |
EasyLock.changePassword() |
Change the existing password |
EasyLock.disablePassword() |
Turn the lock off |
EasyLock.setBackgroundColor() |
Set the lockscreen background colour |
EasyLock.forgotPassword(new View.OnClickListener()) |
Handle taps on "Forgot password" |
Check out the app module in this repository for a full working example :)
Enjoy...
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/SendMoney2MeV1/
MIT License — Copyright (c) 2018 Fayaz Bin Salam. See LICENSE for the full text.
Contributions are warmly welcomed and greatly appreciated! Whether it's a bug fix, new feature, or improvement, your input helps make this project better for everyone.
Before submitting a pull request, please:
- Create an issue describing the feature or bug fix you'd like to work on
- Wait for discussion and approval to ensure alignment with project goals
- Fork the repository and create your feature branch
- Submit your pull request with a clear description of changes
This approach helps avoid duplicate efforts and ensures smooth collaboration. Thank you for considering contributing!
Sharing this repository with your friends is just one click away from here
If this saved you time, you can buy me a coffee — it keeps these projects maintained and free.
I take fixed-price native Android work on my own projects. No hourly billing, no surprise scope:
| Drop-in integration — I wire this into your codebase and hand you a PR that builds | $45 · 3 days |
| Priority bug fix or small feature — jumps ahead of the free issue queue | $95 · 72 hours |
| Custom build — branded, packaged and deployed, source yours | $130 · 7 days |
| A full app from scratch | from $350 · quoted first |
All prices and how to buy → p32929.github.io/hire
Or buy through Fiverr (escrow, ID-verified, 5.0★) — safest for a first job.
Scoping and quotes are free: open an issue and describe the job.









