Is there a way to Pan a grid view to Horizontal Direction. I am implementing a grid view on a image. So whenever I zoom the image grid should also get to be zoom and pan in all direction, so i can select a specific area of the image.
I googled for panning of grid but not got satisfactory answers. please help me with some example code.
I too searched for some standard methods for zooming views other than image views but didn’t find anything. So, I did a workaround for this and it works.
For zooming a view you can apply zoom animation on the view with fillAfter property enabled.
Here is how you can do this:
Here each time this method is called the view is scaled and the dimension is saved. You can decrease the animation duration to give the effect of instant zooming. Now you can call this method onPan or onTouch to apply zoom.
I hope this will help.