
鸿蒙开源组件——自定义屏幕图案解锁控件
PatternLockView
一个自定义屏幕图案解锁控件,该库使您可以轻松,快速地在应用程序中实现模式锁定机制。它非常易于使用,并且提供了许多自定义选项,可以更改此视图的功能和外观以满足您的需求。它还支持RxJava 2视图绑定,因此,如果您喜欢响应式编程(就像我一样),则可以在用户绘制模式时获得更新流。
概述
- 支持手势滑动解锁绘制以及回调核心功能
- 鸿蒙Touch事件获取的坐标值和原组件有些差异,使用时请注意
演示
集成
"apiVersion": { "compatible": 5, "target": 5, "releaseType": "Beta1" //此处没有需要自己添加 } 4.修改readme中集成方式
entry运行要求
通过DevEco studio,并下载SDK 将项目中的build.gradle文件中dependencies→classpath版本改为对应的版本(即你的IDE新建项目中所用的版本)
示例
License
Copyright 2017 aritraroy
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.
