GestureLockView是一个提供给Android的、简单易用的、可扩展的手势解锁框架。
-
GestureLockView 内置了一个默认的手势解锁视图,实现了手势解锁的基础功能。
-
GestureLockView 支持对内置视图进行简单的样式调整、动画设置、触摸震动设置。
-
GestureLockView 支持自定义绘制,实现不同的样式效果。
-
GestureLockView 支持插入图片代替自定义绘制、提升开发效率。
注: 新增“手势解锁缩略图视图”(1.0.1版本添加)
作者录制了完整的Demo视频演示:
Youtube视频[2分58秒] (需要翻墙): https://youtu.be/-WRLJzNZ8sU
GestureLockView 内置了一个默认的解锁视图,效果如下:
GestureLockView 支持插入图片,代替原始绘制:
GestureLockView 支持自定义绘制,多数APP手势解锁效果都可以使用GestureLockView实现,举例:
Demo地址: GestureLockViewDemo.apk
在需要使用的module下,找到build.gradle文件添加库依赖:
dependencies {
compile 'com.wangnan:gesturelockview:1.0.2'
}
1.基础自定义属性请参看 Github Wiki Attr
2.其他基础方法请参看 Github Wiki Method
3.使用案例请参看 Android进阶 - 手势解锁
- 1.0.2
1.修复某些场景下出现崩溃的BUG。
- 1.0.1
1.添加缩略图View,详情请查看 Github Wiki Doucument_1.0.1
2.修正连接两点时中间点未添加的Bug。
- 1.0.0
原始手势解锁功能
1.GitHub Issues: 在Github上提问
2.简书: 给作者发简信
Copyright 2017 wangnan
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.