Git Product home page Git Product logo

androidpatternlock's Introduction

AndroidPatternLock

An Android library with the implementation of the pattern lock screen.

Android 手势密码view.

Some encryption methods are provided: MD5/SHA-1/SHA-256.

  • How to use:

    1. Add this project to be your own project's library project.

    2. Use the LockView in you layout xml file, as below:

            <com.tg.androidpatternlock.LockView
            android:id="@+id/lockview"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            />
    1. In your activity:

      Make these calls:

      
           mLockView = (LockView) findViewById(R.id.lockview);
           mLockView.setPatternListener();
           mLockView.setPatternPasswordStorageFetcher();
           mLockView.setWorkMode();
       

      There are two work modes, creating and input, which respectively should be used when user is creating or inputing pattern password.

      Below calls are optional:

      
           mLockView.setSkipPolicy(LockView.SkipPolicy_AutoConnect);
           mLockView.setPathColorCorrect(getResources().getColor(R.color.some_color));
           mLockView.setCircleColorNormal(getResources().getColor(R.color.some_color));
           mLockView.setCircleColorCorrect(getResources().getColor(R.color.some_color));
           mLockView.setUiStyle(LockView.UiStyle_Circle);
       

  • Screen shots:

    Creating mode Inputing mode
    Alt text Alt text

androidpatternlock's People

Contributors

t-gao avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.