Pinch-to-zoom with multi-touch gestures
The previous recipe used the
SimpleOnGestureListener to provide detection of simple, one-finger, gestures. In this recipe, we will demonstrate multi-touch with the common pinch-to-zoom gesture using the
The following screenshot shows the icon zoomed out using the application created in the following recipe:
The following screenshot shows the icon zoomed in:
Create a new project in Android Studio and call it:
MultiTouchZoom. Use the default Phone & Tablet options ...