转载请注明出处王亟亟的大牛之路
先安利,收纳库:https://github.com/ddwhan0123/Useful-Open-Source-Android 每天都在更!!!
上一篇关于学习和职场的一些看法,评论不错阅读量不佳(估计是没分享到主页的缘故吧,这里再安利下):http://blog.csdn.net/ddwhan0123/article/details/51646255
废话不多说,开始这一篇的内容
之前也有看到过一些类似的应用锁实现,今天看到个比较好看+好用的就推荐给大家
先看下运行效果:
How to use?
Gradle
dependencies {
// other dependencies here
compile 'com.andrognito.pinlockview:pinlockview:1.0.0'
}
Maven
<dependency>
<groupId>com.andrognito.pinlockview</groupId>
<artifactId>pinlockview</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
Eclipse的小伙们再见!!!
来看下例子里怎么用的
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"