Search code examples
androidbitmapimageviewout-of-memory

How to display large size bitmaps in imageview android?


I have images more than 6000px height. Whenever I tried to display these images I got out of memory exception.

I have seen many links but none of matches my need. Because mostly people suggesting image re-sizing solution. But If I'll re-size my image than I am unable to read the text in images due to poor quality.

I want some help in creating some code that can open an image without re-sizing it also with zooming effect.

Any help would be really appreciated.


Solution

  • Try using a WebView to show the image, instead of ImageView