LockPattern

Additional

Language
Java
Version
N/A
Created
Feb 1, 2016
Updated
Mar 10, 2016 (Retired)
Owner
Andriy (pro100svitlo)
Contributor
Andriy (pro100svitlo)
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

LockPattern

This library provides developer with possibility to easily integrate lock pattern protection into his android application. A lot of items are available for customization.

  1. Usage
  2. Callbacks
    1. Main Interface
    2. Dialog Interface
  3. Customization
  4. Password Managing
  5. License

Usage

Add the dependencies to your gradle file:
    dependencies {
        compile 'com.github.pro100svitlo:lockpattern:0.9.3'
    }
Also you need to add few lines to your manifest file:
  <uses-permission android:name="android.permission.VIBRATE" />
  <application
        ...
        tools:replace="label"
        ...
        >
In your layout xml you need to add following code:

Note: your activity must be without toolbar, etc.! Only LockPatternView should be used as main and single layout!

  <com.pro100svitlo.lockpattern.LockPatternView
        android:id="@+id/lpv"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        />
Inside your activity or fragment:
    LockPatternView lockPatternView = (LockPatternView) findViewById(R.id.lpv);
    lockPatternView.initLockPatternView(getActivity(), this, this);
    //second argument - main interface callback
    //second argument - dialogs interface callback

That's pretty much all what you need to start the work!