March 2016
Intermediate to advanced
428 pages
9h 2m
English
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 SimpleOnScaleGestureListener class.
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 ...
Read now
Unlock full access