All Projects → LeonDevLifeLog → GestureLockView

LeonDevLifeLog / GestureLockView

Licence: Apache-2.0 license
九宫格手势解锁控件

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to GestureLockView

btt
Low level MacOS management in JavaScript via BetterTouchTool
Stars: ✭ 92 (+135.9%)
Mutual labels:  gesture
simple gesture detector
Easy to use, reliable and lightweight gesture detector for Flutter apps, exposing simple API for basic gestures
Stars: ✭ 26 (-33.33%)
Mutual labels:  gesture
Huawei-Bootloader-Unlocker
This little tool let you unlock your bootloader of your huawei family device easily
Stars: ✭ 176 (+351.28%)
Mutual labels:  unlock
fusuma-plugin-tap
Tap and Hold gestures plugin for Fusuma
Stars: ✭ 16 (-58.97%)
Mutual labels:  gesture
HandTrackingGestureRecorder
Unity script to record any gesture with your own hands
Stars: ✭ 74 (+89.74%)
Mutual labels:  gesture
SlideToUnlock
No description or website provided.
Stars: ✭ 14 (-64.1%)
Mutual labels:  unlock
Instant-Face-Unlock
Xposed Module's InstantFaceUnlock Code
Stars: ✭ 23 (-41.03%)
Mutual labels:  unlock
iMoney
iMoney 金融项目
Stars: ✭ 55 (+41.03%)
Mutual labels:  gesture
liveGestureDemo
仿映客双屏直播,OpenCV 竖屏检测,人脸贴纸
Stars: ✭ 26 (-33.33%)
Mutual labels:  gesture
gestures-android
Gesture recognizers for Android
Stars: ✭ 18 (-53.85%)
Mutual labels:  gesture
MediumUnlimited
Android App written with Flutter/Dart to navigate medium.com without limitations.
Stars: ✭ 28 (-28.21%)
Mutual labels:  unlock
Sensitive
Special way to work with gestures in iOS
Stars: ✭ 549 (+1307.69%)
Mutual labels:  gesture
gesto
You can set up drag, pinch events in any browser.
Stars: ✭ 47 (+20.51%)
Mutual labels:  gesture
Intel-Realsense-Hand-Toolkit-Unity
Intel Realsense Toolkit for Hand tracking and Gestural Recognition on Unity3D
Stars: ✭ 72 (+84.62%)
Mutual labels:  gesture
Gestures-Samples
Project Prague Code Samples
Stars: ✭ 98 (+151.28%)
Mutual labels:  gesture
GIMLeT
GIMLeT – Gestural Interaction Machine Learning Toolkit
Stars: ✭ 33 (-15.38%)
Mutual labels:  gesture
gestures
A library for normalized events and gesture for desktop and mobile.
Stars: ✭ 31 (-20.51%)
Mutual labels:  gesture
myo-armband-nn
Gesture recognition using myo armband via neural network (tensorflow library).
Stars: ✭ 33 (-15.38%)
Mutual labels:  gesture
mapbox-gestures-android
The Mapbox Gestures for Android library makes it easy to detect and handle user gestures on an Android device.
Stars: ✭ 25 (-35.9%)
Mutual labels:  gesture
react-native-gesture-flip-card
A card flipping animation component using gesture for react-native.
Stars: ✭ 93 (+138.46%)
Mutual labels:  gesture

GestureLockView 九宫格手势解锁控件

Platform Build Codacy Badge API GitHub license

Preview 预览

this projcet MIUI OS
本项目实现 miui实现

Notice 说明

  • 每个点代表一个字母,从a到z(需求超过5行5列(25)的暂时支持)

  • Every point is a char from a to z(so more than 5 col and 5 row is not support now)

How to use 引入库依赖

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}


dependencies {
        implementation 'com.github.LeonDevLifeLog:GestureLockView:v0.0.1' //请手动替换最新版本
}

Layout sample 自定义属性

<com.github.leondevlifelog.gesturelockview.GestureLockView
        android:id="@+id/customGestureLockView"
        android:layout_width="229dp"
        android:layout_height="241dp"
        android:layout_marginEnd="8dp"
        android:layout_marginStart="8dp"
        android:layout_marginTop="76dp"
        android:padding="0dp"
        app:col="4"   <!--点的列数 默认3列-->
        app:dot_color="#121212" <!--点的颜色 默认-->
        app:dot_color_pressed="#FF2254A6"  <!--点被按着的时候的颜色-->
        app:dot_pressed_radius="6dp"  <!--点被点击的时候显示的区域大小-->
        app:dot_radius="6dp" <!--点的半径-->
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:line_color="#55CCCCCC"    <!--点与点之间线条轨迹的颜色-->
        app:line_width="12dp"   <!--直线轨迹线宽-->
        app:min_length="4"    <!--轨迹/密码最小长度-->
        app:row="4"  <!--点的行数 默认3行-->
        app:security_mode="false"    <!--是否启用安全模式(不带轨迹)-->
        app:vibrate="true"    <!--震动开关--> />

SetListener 使用方法

使用时只要给控件setOnCheckPasswordListener,实现以下接口

public interface OnCheckPasswordListener {
        /**
         * 手势密码输入完成时回调,验证密码
         * <br>这里只做密码校验
         *
         * @param passwd 输入完成的手势密码
         * @return <code>true</code>:输入的手势密码和存储在本地的密码一致
         * <br>反之<code>false</code>
         */
        boolean onCheckPassword(String passwd);

        /**
         * 当密码校验成功时的回调
         */
        void onSuccess();

        /**
         * 当密码校验失败时的回调
         */
        void onError();
    }

Plan

  • 自定义密码错误或长度不够的时候的主颜色
  • 点可否被重复连接(增加密码强度)
  • 错误次数限制
  • 行列都超过5的情况下优化一下

Licenses

Copyright 2020 Leon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].