How does pinch zoom work with panning for image in Android
问题 Goal An activity is made to view image, we can pinch zoom or pan the image. The image is centered in the screen in the beginning. Pinch zoom is centered at the center of the image, even after the image is panned somewhere else in the screen. The image for displaying is downloaded from a given URL, and the URL is passed from extra of an intent to start the image viewing activity. Pinch zoom is implemented by postScale() , pan by postTranslate() . Problem After panning the image somewhere, the