Android对View截图和Activity截图的源代码

上传者: guggy | 上传时间: 2021-09-25 09:54:48 | 文件大小: 651KB | 文件类型: RAR
该源代码演示Android中如何对View(如button)进行截图和如何对整个Activity截图。同时演示怎样在截图上写上水印,演示如何把截图保存成文件。

文件下载

资源详情

[{"title":"( 47 个子文件 651KB ) Android对View截图和Activity截图的源代码","children":[{"title":"TakeViewShot","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 314.60KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 409B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 491B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 311B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"cn","children":[{"title":"livelog","children":[{"title":"takeviewshot","children":[{"title":"BuildConfig.class <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"TakeViewShotActivity$1.class <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 422B </span>","children":null,"spread":false},{"title":"TakeViewShotActivity.class <span style='color:#111;'> 4.95KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 538B </span>","children":null,"spread":false},{"title":"TakeViewShotActivity$2.class <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 410B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 19.73KB </span>","children":null,"spread":false},{"title":"TakeViewShot.apk <span style='color:#111;'> 152.68KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 792B </span>","children":null,"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":true},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 90B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"activity_take_view_shot.xml <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 104B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 259B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 85B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_take_view_shot.xml <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"resource.properties <span style='color:#111;'> 84B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 35.20KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"cn","children":[{"title":"livelog","children":[{"title":"takeviewshot","children":[{"title":"BuildConfig.java <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"cn","children":[{"title":"livelog","children":[{"title":"takeviewshot","children":[{"title":"TakeViewShotActivity.java <span style='color:#111;'> 5.39KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 815B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 792B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 329.65KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • ysheaven :
    水印好评,但是不是想要的效果
    2016-04-11
  • line1213 :
    不能正常运行
    2015-12-04
  • aiwsb :
    一运行就甭了
    2015-06-25
  • adlhb :
    非常好,很有帮助
    2015-01-29
  • u011435746 :
    和想象中的差的有点多
    2014-12-29

免责申明

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