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.
Sponsor a mention — $499 one-time: your name + link in this section for 3 months. $1,200 one-time: featured placement at the top of this section, plus a pinned mention on my X profile, for 3 months. Email fayazdevinbox@uberip.com for an invoice.
I do fixed-price delivery work on my own projects. One invoice, one date, no hourly billing:
| White-label build — this project rebranded, extended and deployed as yours | $6,500 · 3 weeks |
| Custom app from scratch on my own stack, signed and auto-updating | $12,500 · 6 weeks |
| Production-hardening sprint — 72 hours on this project, for your load and your security review | $999 |
| Ongoing capacity — one project-week of my time reserved every month | $9,000 / month |
Full details → p32929.github.io/hire · Email fayazdevinbox@uberip.com — scoping and quotes are free and I answer within one business day.









