实例介绍
改代码包含了常见的图片特效处理,均进行了封装,也实现了仿新浪的点击图片放大,再点击缩小到原位置的功能,参见博客http://blog.csdn.net/luzhenyuxfcy/article/details/49427781
【实例截图】
【核心代码】
ImageProLib
└── ImageProLib
├── app
│ ├── app.iml
│ ├── build
│ │ ├── generated
│ │ │ └── source
│ │ │ ├── buildConfig
│ │ │ │ ├── androidTest
│ │ │ │ │ └── debug
│ │ │ │ │ └── com
│ │ │ │ │ └── lzy
│ │ │ │ │ └── imageprolib
│ │ │ │ │ └── test
│ │ │ │ │ └── BuildConfig.java
│ │ │ │ └── debug
│ │ │ │ └── com
│ │ │ │ └── lzy
│ │ │ │ └── imageprolib
│ │ │ │ └── BuildConfig.java
│ │ │ └── r
│ │ │ └── debug
│ │ │ └── com
│ │ │ └── lzy
│ │ │ └── imageprolib
│ │ │ └── R.java
│ │ ├── intermediates
│ │ │ ├── blame
│ │ │ │ └── res
│ │ │ │ └── debug
│ │ │ │ ├── multi
│ │ │ │ │ ├── values.json
│ │ │ │ │ └── values-w820dp-v13.json
│ │ │ │ └── single
│ │ │ │ ├── drawable.json
│ │ │ │ ├── layout.json
│ │ │ │ ├── mipmap-hdpi-v4.json
│ │ │ │ ├── mipmap-mdpi-v4.json
│ │ │ │ ├── mipmap-xhdpi-v4.json
│ │ │ │ ├── mipmap-xxhdpi-v4.json
│ │ │ │ └── mipmap-xxxhdpi-v4.json
│ │ │ ├── classes
│ │ │ │ ├── androidTest
│ │ │ │ │ └── debug
│ │ │ │ │ └── com
│ │ │ │ │ └── lzy
│ │ │ │ │ └── imageprolib
│ │ │ │ │ ├── ApplicationTest.class
│ │ │ │ │ └── test
│ │ │ │ │ └── BuildConfig.class
│ │ │ │ ├── debug
│ │ │ │ │ └── com
│ │ │ │ │ └── lzy
│ │ │ │ │ └── imageprolib
│ │ │ │ │ ├── BuildConfig.class
│ │ │ │ │ ├── kits
│ │ │ │ │ │ ├── ImageProcessHelper$1.class
│ │ │ │ │ │ ├── ImageProcessHelper$Format.class
│ │ │ │ │ │ ├── ImageProcessHelper$HelperTemp.class
│ │ │ │ │ │ ├── ImageProcessHelper$Position.class
│ │ │ │ │ │ ├── ImageProcessHelper.class
│ │ │ │ │ │ └── widget
│ │ │ │ │ │ ├── Compat.class
│ │ │ │ │ │ ├── IPhotoView.class
│ │ │ │ │ │ ├── MyViewPager.class
│ │ │ │ │ │ ├── PhotoAnimation.class
│ │ │ │ │ │ ├── PhotoViewAttacher$1.class
│ │ │ │ │ │ ├── PhotoViewAttacher$2.class
│ │ │ │ │ │ ├── PhotoViewAttacher$AnimatedZoomRunnable.class
│ │ │ │ │ │ ├── PhotoViewAttacher$FlingRunnable.class
│ │ │ │ │ │ ├── PhotoViewAttacher$OnMatrixChangedListener.class
│ │ │ │ │ │ ├── PhotoViewAttacher$OnPhotoTapListener.class
│ │ │ │ │ │ ├── PhotoViewAttacher$OnViewTapListener.class
│ │ │ │ │ │ ├── PhotoViewAttacher.class
│ │ │ │ │ │ ├── PhotoView.class
│ │ │ │ │ │ ├── ScrollerProxy$GingerScroller.class
│ │ │ │ │ │ ├── ScrollerProxy$PreGingerScroller.class
│ │ │ │ │ │ ├── ScrollerProxy.class
│ │ │ │ │ │ ├── SDK16.class
│ │ │ │ │ │ ├── VersionedGestureDetector$CupcakeDetector.class
│ │ │ │ │ │ ├── VersionedGestureDetector$EclairDetector.class
│ │ │ │ │ │ ├── VersionedGestureDetector$FroyoDetector$1.class
│ │ │ │ │ │ ├── VersionedGestureDetector$FroyoDetector.class
│ │ │ │ │ │ ├── VersionedGestureDetector$OnGestureListener.class
│ │ │ │ │ │ └── VersionedGestureDetector.class
│ │ │ │ │ ├── R$attr.class
│ │ │ │ │ ├── R$color.class
│ │ │ │ │ ├── R$dimen.class
│ │ │ │ │ ├── R$drawable.class
│ │ │ │ │ ├── R$id.class
│ │ │ │ │ ├── R$layout.class
│ │ │ │ │ ├── R$mipmap.class
│ │ │ │ │ ├── R$string.class
│ │ │ │ │ ├── R$style.class
│ │ │ │ │ ├── R.class
│ │ │ │ │ └── UI
│ │ │ │ │ ├── ImageAdapter$1.class
│ │ │ │ │ ├── ImageAdapter$2.class
│ │ │ │ │ ├── ImageAdapter$SamplePagerAdapter$1$1.class
│ │ │ │ │ ├── ImageAdapter$SamplePagerAdapter$1.class
│ │ │ │ │ ├── ImageAdapter$SamplePagerAdapter.class
│ │ │ │ │ ├── ImageAdapter.class
│ │ │ │ │ ├── MainActivity$1.class
│ │ │ │ │ ├── MainActivity$2.class
│ │ │ │ │ ├── MainActivity2.class
│ │ │ │ │ └── MainActivity.class
│ │ │ │ └── test
│ │ │ │ └── debug
│ │ │ │ └── com
│ │ │ │ └── lzy
│ │ │ │ └── imageprolib
│ │ │ │ └── ExampleUnitTest.class
│ │ │ ├── incremental
│ │ │ │ ├── compileDebugAidl
│ │ │ │ │ └── dependency.store
│ │ │ │ ├── compileDebugAndroidTestAidl
│ │ │ │ │ └── dependency.store
│ │ │ │ ├── mergeDebugAndroidTestAssets
│ │ │ │ │ └── merger.xml
│ │ │ │ ├── mergeDebugAndroidTestResources
│ │ │ │ │ └── merger.xml
│ │ │ │ ├── mergeDebugAndroidTestShaders
│ │ │ │ │ └── merger.xml
│ │ │ │ ├── mergeDebugAssets
│ │ │ │ │ └── merger.xml
│ │ │ │ ├── mergeDebugJniLibFolders
│ │ │ │ │ └── merger.xml
│ │ │ │ ├── mergeDebugResources
│ │ │ │ │ └── merger.xml
│ │ │ │ └── mergeDebugShaders
│ │ │ │ └── merger.xml
│ │ │ ├── incremental-safeguard
│ │ │ │ ├── androidTest
│ │ │ │ │ └── debug
│ │ │ │ │ └── tag.txt
│ │ │ │ └── debug
│ │ │ │ └── tag.txt
│ │ │ ├── instant-run-support
│ │ │ │ └── debug
│ │ │ │ └── package.marker
│ │ │ ├── manifest
│ │ │ │ └── androidTest
│ │ │ │ └── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ ├── manifests
│ │ │ │ └── full
│ │ │ │ └── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ ├── pre-dexed
│ │ │ │ └── debug
│ │ │ │ ├── android-support-v4_d32ef50f7ac90ff1ad63c9b0ba0dff09e7d7c8d4.jar
│ │ │ │ ├── debug_c1cd9ec4617160dfd4c40ba47d7932aec63d967e.jar
│ │ │ │ └── nineoldandroids-2.4.0_102765ce48c630303bd0f530614b09bea41e7c2b.jar
│ │ │ ├── res
│ │ │ │ ├── merged
│ │ │ │ │ └── debug
│ │ │ │ │ ├── drawable
│ │ │ │ │ │ ├── sample_0.jpg
│ │ │ │ │ │ ├── sample_10.jpg
│ │ │ │ │ │ ├── sample_11.jpg
│ │ │ │ │ │ ├── sample_12.jpg
│ │ │ │ │ │ ├── sample_13.jpg
│ │ │ │ │ │ ├── sample_14.jpg
│ │ │ │ │ │ ├── sample_1.jpg
│ │ │ │ │ │ ├── sample_2.jpg
│ │ │ │ │ │ ├── sample_3.jpg
│ │ │ │ │ │ ├── sample_4.jpg
│ │ │ │ │ │ ├── sample_5.jpg
│ │ │ │ │ │ ├── sample_6.jpg
│ │ │ │ │ │ ├── sample_7.jpg
│ │ │ │ │ │ ├── sample_8.jpg
│ │ │ │ │ │ └── sample_9.jpg
│ │ │ │ │ ├── layout
│ │ │ │ │ │ ├── activity_main2.xml
│ │ │ │ │ │ └── activity_main.xml
│ │ │ │ │ ├── mipmap-hdpi-v4
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi-v4
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi-v4
│ │ │ │ │ │ ├── demo.jpg
│ │ │ │ │ │ ├── ic_action_search.png
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ ├── sample_0.jpg
│ │ │ │ │ │ ├── sample_10.jpg
│ │ │ │ │ │ ├── sample_11.jpg
│ │ │ │ │ │ ├── sample_12.jpg
│ │ │ │ │ │ ├── sample_13.jpg
│ │ │ │ │ │ ├── sample_14.jpg
│ │ │ │ │ │ ├── sample_1.jpg
│ │ │ │ │ │ ├── sample_2.jpg
│ │ │ │ │ │ ├── sample_3.jpg
│ │ │ │ │ │ ├── sample_4.jpg
│ │ │ │ │ │ ├── sample_5.jpg
│ │ │ │ │ │ ├── sample_6.jpg
│ │ │ │ │ │ ├── sample_7.jpg
│ │ │ │ │ │ ├── sample_8.jpg
│ │ │ │ │ │ └── sample_9.jpg
│ │ │ │ │ ├── mipmap-xxhdpi-v4
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi-v4
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── values
│ │ │ │ │ │ └── values.xml
│ │ │ │ │ └── values-w820dp-v13
│ │ │ │ │ └── values-w820dp-v13.xml
│ │ │ │ ├── resources-debug-androidTest.ap_
│ │ │ │ └── resources-debug.ap_
│ │ │ └── transforms
│ │ │ ├── dex
│ │ │ │ └── debug
│ │ │ │ └── folders
│ │ │ │ └── 1000
│ │ │ │ └── 1f
│ │ │ │ └── main
│ │ │ │ └── classes.dex
│ │ │ └── mergeJavaRes
│ │ │ └── debug
│ │ │ └── jars
│ │ │ └── 2
│ │ │ └── 1f
│ │ │ └── main.jar
│ │ └── outputs
│ │ ├── apk
│ │ │ ├── app-debug.apk
│ │ │ └── app-debug-unaligned.apk
│ │ └── logs
│ │ └── manifest-merger-debug-report.txt
│ ├── build.gradle
│ ├── libs
│ │ ├── android-support-v4.jar
│ │ └── nineoldandroids-2.4.0.jar
│ ├── proguard-rules.pro
│ └── src
│ ├── androidTest
│ │ └── java
│ │ └── com
│ │ └── lzy
│ │ └── imageprolib
│ │ └── ApplicationTest.java
│ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ └── lzy
│ │ │ └── imageprolib
│ │ │ ├── kits
│ │ │ │ ├── ImageProcessHelper.java
│ │ │ │ └── widget
│ │ │ │ ├── Compat.java
│ │ │ │ ├── IPhotoView.java
│ │ │ │ ├── MyViewPager.java
│ │ │ │ ├── PhotoAnimation.java
│ │ │ │ ├── PhotoViewAttacher.java
│ │ │ │ ├── PhotoView.java
│ │ │ │ ├── ScrollerProxy.java
│ │ │ │ ├── SDK16.java
│ │ │ │ └── VersionedGestureDetector.java
│ │ │ └── UI
│ │ │ ├── ImageAdapter.java
│ │ │ ├── MainActivity2.java
│ │ │ └── MainActivity.java
│ │ └── res
│ │ ├── drawable
│ │ │ ├── sample_0.jpg
│ │ │ ├── sample_10.jpg
│ │ │ ├── sample_11.jpg
│ │ │ ├── sample_12.jpg
│ │ │ ├── sample_13.jpg
│ │ │ ├── sample_14.jpg
│ │ │ ├── sample_1.jpg
│ │ │ ├── sample_2.jpg
│ │ │ ├── sample_3.jpg
│ │ │ ├── sample_4.jpg
│ │ │ ├── sample_5.jpg
│ │ │ ├── sample_6.jpg
│ │ │ ├── sample_7.jpg
│ │ │ ├── sample_8.jpg
│ │ │ └── sample_9.jpg
│ │ ├── layout
│ │ │ ├── activity_main2.xml
│ │ │ └── activity_main.xml
│ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ │ ├── demo.jpg
│ │ │ ├── ic_action_search.png
│ │ │ ├── ic_launcher.png
│ │ │ ├── sample_0.jpg
│ │ │ ├── sample_10.jpg
│ │ │ ├── sample_11.jpg
│ │ │ ├── sample_12.jpg
│ │ │ ├── sample_13.jpg
│ │ │ ├── sample_14.jpg
│ │ │ ├── sample_1.jpg
│ │ │ ├── sample_2.jpg
│ │ │ ├── sample_3.jpg
│ │ │ ├── sample_4.jpg
│ │ │ ├── sample_5.jpg
│ │ │ ├── sample_6.jpg
│ │ │ ├── sample_7.jpg
│ │ │ ├── sample_8.jpg
│ │ │ └── sample_9.jpg
│ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── values-w820dp
│ │ └── dimens.xml
│ └── test
│ └── java
│ └── com
│ └── lzy
│ └── imageprolib
│ └── ExampleUnitTest.java
├── build
│ ├── generated
│ │ └── mockable-android-23.jar
│ └── intermediates
│ └── dex-cache
│ └── cache.xml
├── build.gradle
├── gradle
│ └── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── ImageProLib.iml
├── local.properties
└── settings.gradle
133 directories, 205 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论