Android系统Activity中实现定时屏保

上传者: weijing331 | 上传时间: 2021-04-29 19:05:33 | 文件大小: 3.28MB | 文件类型: RAR
本测试程序有二个重点: 1、控制与判别User静止未触摸键盘或屏幕的时间及其事件。 2、设计动态全屏淡入(Fade-in)、淡出(Fade-out)图片的交替。 以上这二个重点都需要通过线程来实现,以时间截记得方式,判断距离上一次单击键盘或屏幕的时间,并计量二次的间隔,当超过了指定的秒数(代码中是10秒)则进入屏保模式。

文件下载

资源详情

[{"title":"( 41 个子文件 3.28MB ) Android系统Activity中实现定时屏保","children":[{"title":"PingBao_Test","children":[{"title":".project <span style='color:#111;'> 848B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"proguard.cfg <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"weijing","children":[{"title":"zhcw","children":[{"title":"PingBao_TestActivity.java <span style='color:#111;'> 13.42KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"login_bg.png <span style='color:#111;'> 148.97KB </span>","children":null,"spread":false},{"title":"bg_kuang2.png <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"bg_800x600.png <span style='color:#111;'> 286.94KB </span>","children":null,"spread":false},{"title":"bg.png <span style='color:#111;'> 408.70KB </span>","children":null,"spread":false},{"title":"logo.png <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"securescreen.xml <span style='color:#111;'> 821B </span>","children":null,"spread":false},{"title":"main.xml <span style='color:#111;'> 881B </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 231B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"weijing","children":[{"title":"zhcw","children":[{"title":"R.java <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 864.89KB </span>","children":null,"spread":false},{"title":"PingBao_Test.apk <span style='color:#111;'> 873.31KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"weijing","children":[{"title":"zhcw","children":[{"title":"R$layout.class <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"PingBao_TestActivity$1.class <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false},{"title":"PingBao_TestActivity$4.class <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"PingBao_TestActivity.class <span style='color:#111;'> 10.54KB </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"PingBao_TestActivity$3.class <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 512B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 489B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 439B </span>","children":null,"spread":false},{"title":"PingBao_TestActivity$2.class <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"PingBao_TestActivity$5.class <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"login_bg.png <span style='color:#111;'> 152.73KB </span>","children":null,"spread":false},{"title":"bg_kuang2.png <span style='color:#111;'> 5.29KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"bg_800x600.png <span style='color:#111;'> 299.50KB </span>","children":null,"spread":false},{"title":"bg.png <span style='color:#111;'> 391.59KB </span>","children":null,"spread":false},{"title":"logo.png <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 13.89KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • yunge1987 :
    不错,有所启发
    2019-07-10
  • -枫尘- :
    来蹭个集分
    2018-12-05
  • 小小笨孩 :
    一般吧。不是想一般吧。不是想要的要的
    2018-02-11
  • 游弋北纬 :
    谢谢分享,但还不是想要的
    2016-06-22
  • 尐西灬门攸丨香 :
    不错 有用 有价值
    2016-03-30
  • daman1 :
    非常简单,有一定参考价值
    2016-01-11
  • zsaya :
    跟我要的效果不一样,我想的是就是手机待机一会就跑出屏保了,而不是在这个程序里运行
    2015-08-31
  • wukongwork :
    无法下载呀,下载到一半就错误
    2015-08-04
  • hancunai0017 :
    很不错,对我有帮助。
    2015-03-18
  • DLMU4004 :
    比较简单的一个例子,没什么参考价值
    2015-01-31

免责申明

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