Skip to content

Repository files navigation

AndroidAppLockscreen

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
screenshot_1532237234 screenshot_1532237239

Installation

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'
}

Usage

Two steps:

  1. Extend all your Activity classes from LockscreenHandler
  2. Call EasyLock.checkPassword(this); in the onCreate of 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);
    }
}

API

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...

Support

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/

License

MIT License — Copyright (c) 2018 Fayaz Bin Salam. See LICENSE for the full text.

Contributing

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:

  1. Create an issue describing the feature or bug fix you'd like to work on
  2. Wait for discussion and approval to ensure alignment with project goals
  3. Fork the repository and create your feature branch
  4. 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!

Share

Sharing this repository with your friends is just one click away from here

facebook twitter tumblr pocket pinterest reddit linkedin whatsapp


Support

If this saved you time, you can buy me a coffee — it keeps these projects maintained and free.

Buy Me A Coffee


💼 Need this customised — or need it yesterday?

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.

About

Minimal PIN lockscreen library for Android apps — set, check, change or disable a passcode in two lines

Topics

Resources

Stars

64 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages