7

I am trying to implement an image viewer using TouchImageView.

  • TouchImageView is placed in a Fragment.
  • And I set a large image(2500x3000) to this TouchImageView, (loading with inSampleSize=8).
  • Then I pinch zoom-in the image, it is displayed at low resolution.(It's no wonder.)

However, I want to display a high resolution image at zoom-in, like Android Gallery app. How to do this?

Thanks in advance.

collapsar
  • 16,200
  • 4
  • 33
  • 60
yk00
  • 71
  • 1
  • 2
  • check these http://stackoverflow.com/questions/13210443/android-pinch-and-zoom-image-in-activity and http://stackoverflow.com/questions/10630373/android-image-view-pinch-zooming – Rachita Nanda Aug 13 '13 at 07:36
  • I checked the links. but Its not very useful for me.I am using TouchImageView(https://github.com/MikeOrtiz/TouchImageView), and it works well. So I can pinch zoom-in/out. – yk00 Aug 13 '13 at 07:46
  • Use webview to display image. – T_V Aug 13 '13 at 07:48
  • I had already tried WebView. But webview image quality is not good at zoom-in. – yk00 Aug 13 '13 at 07:52

3 Answers3

11

I've been unable to find an ImageView implementation that supports zooming into large images, so I've built one that tiles the image and shows the minimum number of high resolution tiles possible, swapping them as you zoom and pan. Hopefully it does what you need.

https://github.com/davemorrissey/subsampling-scale-image-view

Dave Morrissey
  • 4,221
  • 1
  • 20
  • 30
2

You can try this: AndroidBigImage

zella
  • 4,557
  • 5
  • 33
  • 58
2

http://www.androidhub4you.com/2013/05/zoom-image-demo-in-android-zoom-image.html

I hope this will help you find your answer.

Meghs
  • 287
  • 1
  • 4
  • 20