How do I modify TouchImageView with double tap to zoom in and out?

后端 未结 5 799
无人及你
无人及你 2020-12-29 17:37

I am modifying the TouchImageView (https://github.com/MikeOrtiz/TouchImageView/issues) to have zoom in and out for when you double tap. I have started as per this post - How

5条回答
  •  被撕碎了的回忆
    2020-12-29 18:08

    My answer might be not exactly specific to your problem but it covers ImageView Zooom in/out, double tap, Bounding image in Imageview when its zoomed , In short is exactly like the default Gallery app of Android

    http://blog.sephiroth.it/2011/04/04/imageview-zoom-and-scroll/

    As the blog says:

    As long as Android doesn’t have a built-in ImageView widget with zoom and scroll capabilities I tries to create one by myself starting from the google repository.

    The result is pretty nice so I’m posting here the source code, if anyone is interested, or simply doesn’t want to waste the time creating a new one.

提交回复
热议问题