android pinch zoom

Updated Answer Code can be found here : official-doc Answer Outdated Check out the following links which may help you Best examples are provided in the below links, which you can refactor to meet your requirements. Implementing the pinch zoom gesture Android-pinch GestureDetector.SimpleOnGestureListener

Isn’t there an easy way to pinch to zoom in an image in Swiftui?

The other answers here are overly complicated with custom zooming logic. If you want the standard, battle-tested UIScrollView zooming behavior you can just use a UIScrollView! SwiftUI allows you to put any UIView inside an otherwise SwiftUI view hierarchy using UIViewRepresentable or UIViewControllerRepresentable. Then to put more SwiftUI content inside that view, you can use … Read more

Android ImageView Zoom-in and Zoom-Out

Please follow the below class, that is used for Zoom in and Zoom Out for ImageView. import android.app.Activity; import android.graphics.Matrix; import android.graphics.PointF; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.widget.ImageView; public class ZoomInZoomOut extends Activity implements OnTouchListener { private static final String TAG = “Touch”; @SuppressWarnings(“unused”) private static final float MIN_ZOOM … Read more