基于Android的图案解锁实现

上传者: w493549442 | 上传时间: 2021-04-12 14:55:30 | 文件大小: 2.16MB | 文件类型: ZIP
实现思路: 1、自定义LockPatterView控件,定义九宫格点的类型,实现绘制九宫格布局。 2、重写onTouchEvent()事件,完成选中点的绘制。 3、绘制两点之间的连接线。 4、图案密码的设置与验证。

文件下载

资源详情

[{"title":"( 81 个子文件 2.16MB ) 基于Android的图案解锁实现","children":[{"title":"LockPatterProject","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 1.22MB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_point_normal.png <span style='color:#111;'> 901B </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false},{"title":"ic_point_press.png <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"ic_line_error.png <span style='color:#111;'> 83B </span>","children":null,"spread":false},{"title":"ic_point_error.png <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"ic_line_normal.png <span style='color:#111;'> 83B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"jarlist.cache <span style='color:#111;'> 377B </span>","children":null,"spread":false},{"title":"R.txt <span style='color:#111;'> 29.13KB </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v7-appcompat-e0b564323f25f3e2ac72c2d44a09da4e.jar <span style='color:#111;'> 144.66KB </span>","children":null,"spread":false},{"title":"android-support-v4-3b2d7d9f903552af94305c0ea6d05707.jar <span style='color:#111;'> 227.16KB </span>","children":null,"spread":false},{"title":"appcompat_v7_2-1769d91d958fcb5967204b6be8e14d10.jar <span style='color:#111;'> 166B </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"android","children":[{"title":"support","children":[{"title":"v7","children":[{"title":"appcompat","children":[{"title":"R$layout.class <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"R$bool.class <span style='color:#111;'> 763B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 1015B </span>","children":null,"spread":false},{"title":"R$styleable.class <span style='color:#111;'> 6.13KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"R$integer.class <span style='color:#111;'> 445B </span>","children":null,"spread":false},{"title":"R$color.class <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"R$anim.class <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 8.86KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"com","children":[{"title":"wusw","children":[{"title":"lockpatterproject","children":[{"title":"MainActivity.class <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"R$bool.class <span style='color:#111;'> 757B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 5.28KB </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"R$styleable.class <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"R$integer.class <span style='color:#111;'> 439B </span>","children":null,"spread":false},{"title":"R$color.class <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"R$anim.class <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"widget","children":[{"title":"LockPatterView.class <span style='color:#111;'> 7.65KB </span>","children":null,"spread":false},{"title":"LockPatterView$Point.class <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"LockPatterView$OnPatterChangeLister.class <span style='color:#111;'> 352B </span>","children":null,"spread":false}],"spread":false},{"title":"R$style.class <span style='color:#111;'> 8.92KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 291.24KB </span>","children":null,"spread":false},{"title":"LockPatterProject.apk <span style='color:#111;'> 684.94KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 895B </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 263B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_point_normal.png <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false},{"title":"ic_point_press.png <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"ic_line_error.png <span style='color:#111;'> 116B </span>","children":null,"spread":false},{"title":"ic_point_error.png <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"ic_line_normal.png <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 277B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 203B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 588B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"android","children":[{"title":"support","children":[{"title":"v7","children":[{"title":"appcompat","children":[{"title":"R.java <span style='color:#111;'> 38.62KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"com","children":[{"title":"wusw","children":[{"title":"lockpatterproject","children":[{"title":"BuildConfig.java <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 164.05KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"wusw","children":[{"title":"lockpatterproject","children":[{"title":"MainActivity.java <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"widget","children":[{"title":"LockPatterView.java <span style='color:#111;'> 9.74KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 853B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 609B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 895B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 606.89KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明