Android图片切换特效示例:水平百叶窗、垂直百叶窗、马赛克

上传者: jeffszh | 上传时间: 2019-12-21 19:58:41 | 文件大小: 1.43MB | 文件类型: rar
因为工作需要,要做图片切换效果,在网上找了好久,找到的资源要么答非所问,要么没有通用性,我就想:难道这东西这么难做吗?于是自己动手,丰衣足食。 其实各种切换特效都能用Android的属性动画来做的,我就如此简单做了一个,目前有3种特效:水平百叶窗、垂直百叶窗和马赛克,其实懂得这个原理做任何特效都是可以的。 为方便各位童鞋看到运行效果,我上传的是完整的Android工程,可以直接编译、运行。上传包中bin目录有编译好的apk,可直接放入手机运行。 虽是完整的工程,但其实需要看的文件只是SwitchableImageView.java一个,其他的啰啰嗦嗦是Android惯例要写的东西,还有我试验过程中的代码没去掉的,不必在意。 基本上没有写注释,代码很短没有难明的东西,若真有不明白就发帖问吧。

文件下载

资源详情

[{"title":"( 62 个子文件 1.43MB ) Android图片切换特效示例:水平百叶窗、垂直百叶窗、马赛克","children":[{"title":"说明.txt <span style='color:#111;'> 927B </span>","children":null,"spread":false},{"title":"TryAni","children":[{"title":".project <span style='color:#111;'> 842B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"cn","children":[{"title":"jeff","children":[{"title":"tryani","children":[{"title":"AniPlayer.java <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"SwitchableImageView.java <span style='color:#111;'> 5.73KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 871B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"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":"drawable","children":[{"title":"bbb.jpg <span style='color:#111;'> 43.62KB </span>","children":null,"spread":false},{"title":"aaa.jpg <span style='color:#111;'> 7.49KB </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":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 1.19KB </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":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 223B </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":false},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 277B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 57B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"cn","children":[{"title":"jeff","children":[{"title":"tryani","children":[{"title":"BuildConfig.java <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 543.16KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 459B </span>","children":null,"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":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 91.73KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"cn","children":[{"title":"jeff","children":[{"title":"tryani","children":[{"title":"R$layout.class <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 419B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"SwitchableImageView.class <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"AniPlayer.class <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"AniPlayer$1.class <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 328B </span>","children":null,"spread":false},{"title":"SwitchableImageView$SwitchingStyle.class <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"SwitchableImageView$SwitchingStyle$1.class <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"MainActivity$MyAnimator.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 504B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 633B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 460B </span>","children":null,"spread":false},{"title":"MainActivity$1.class <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"SwitchableImageView$SwitchingStyle$2.class <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"MainActivity$MyAni.class <span style='color:#111;'> 702B </span>","children":null,"spread":false},{"title":"AniPlayer$1$1.class <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"SwitchableImageView$SwitchingStyle$3.class <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 871B </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-990f5d2a895f87b02ab5d8c619b21d27.jar <span style='color:#111;'> 206.37KB </span>","children":null,"spread":false}],"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"TryAni.apk <span style='color:#111;'> 306.95KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 622.17KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • mqy1023 :
    再次下载看看!
    2018-06-18
  • 牛大舅[uncleniu] :
    不知道怎么样
    2018-04-27
  • lichangbin008 :
    从中学习游泳的东西
    2018-03-07
  • hywyl :
    看了一下,效果还不错
    2017-12-22
  • weixin_39753300 :
    不知道怎么样
    2017-12-20

免责申明

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