I am developing an application to show image and it should support scrolling and zoom in/out.
So I used a custom view to draw bitmap and handle touch events to scroll it.
But I have a problem while zooming in or out the bitmap,
It woks fine for 1020X600 bitmap but it gives an exception while using 1020X718 bitmap.
I show the bitmap fit to height of the screen and zoom in to its original height.
I used following code
for 1020X718 image it woks fine for first time zoom in and out but if I try it again it throws an exception.
Please help me, If another way is possible please suggest it.
Thanks in advance.