My question is somewhat based off of this question. Displaying SVG files in Android
I have decided to display an SVG in my app, and I do so using the svg-android library. My problem is now how to add pinch to zoom functionality. Maybe this library is outdated and someone knows of another to accomplish this task. From what I see in the javadocs of svg-android, there doesn't seem to be any easy way to add pinch to zoom.
That's not something that needs to necessarily be part of the SVG library. You just need to implement
onTouchEvent()
in your view and use aScaleGestureListener
etc to keep track of your scales and pans.http://developer.android.com/training/gestures/scale.html