How to implement zoom effect for image view in android?

后端 未结 9 1388
日久生厌
日久生厌 2020-11-30 20:13

I have to implement image zooming, I have tried with so many codes.But i didnt get full idea of gesture events. I want to implement when we apply double tap, image will be z

9条回答
  •  悲&欢浪女
    2020-11-30 20:25

    I prefered the library davemorrissey/subsampling-scale-image-view over chrisbanes/PhotoView (answer of star18bit)

    • Both are active projects (both have some commits in 2015)
    • Both have a Demo on the PlayStore
    • subsampling-scale-image-view supports large images (above 1080p) without memory exception due to sub sampling, which PhotoView doesn't support
    • subsampling-scale-image-view seems to have larger API and better documentation

    See How to convert AAR to JAR, if you like to use subsampling-scale-image-view with Eclipse/ADT

提交回复
热议问题