Recently in a project, there is a function is to achieve the Android QQ friends dynamic inside the thumbnail zoom, view the effect of large image. Used to know, this special effect is great, not used to download a play it. I just started to think that the big picture that zoomed in was an activity or a dialog. But after trying to find out how also can not achieve that effect (with the realization of friends, please tell me, Exchange and Exchange). Then to the Android website found a picture amplification effect of the demo. This demo really is to achieve the QQ inside the image amplification of the basic effect, but the requirement is Android 3.0 or more to use, because it used to animator. I know that there is a Nineoldandroids library implemented under 3.0 can also be used animator, as long as the re-rewrite under the OK. But look at the big picture also has pinch image scale, double-click Enlarge, the picture restores and so on effect, but the general realization basically is realizes with scaleanimation, the feeling effect is not ideal. Then on GitHub found a very good demo called Android-gridview-zoom-images-animation-tutorial, which incredibly realize the QQ space thumbnail zoom and restore animation effects. Looked under, also needs Android3.0 above can realize, the realization principle and the official website that demo similar. On GitHub stroll down, found a very good photoview, the two are basically QQ friends dynamic inside to achieve the special effects. Here are the following:
Thumbnail interface, click on each thumbnail, the image from the thumbnail location to zoom in to the screen to adapt to the location.
You can zoom the picture pinch, or double-click the image to zoom back.
You can toggle the picture by swiping the picture to the right or left.
PS: The project source code has been open source, address: Https://github.com/ywenblocker/Android-Photo-Zoom. Do you have any good tools for making GIF pictures under your Mac? The pictures I send are hard to express.
Android under QQ space view big picture effect