xbmc/android — pull request #11 by Montellese (2012-08-02 09:19:32+00:00)
Title: [droid] picture zoom refactor

This new implementation supports both the existing zooming by fixed levels (used for remote controls) and zooming by an arbitrary factor which makes zooming/pinching with touch gestures much more intuitive. Nothing changes for zooming by fixed levels but for zooming by an arbitrary factor every zoom/pinch must start by sending the ACTION_GESTURE_BEGIN action and end by sending the ACTION_GESTURE_END action. In between (as it was already possible before, the ACTION_GESTURE_ZOOM can be sent containing an arbitrary floating-point zoom factor to perform zoom/pinch actions.

This PR only changes the implementation for Android and I guess something will need to change for iOS (and other touch input implementations) as well but it's a lot more intuitive with this than it currently is. Currently touch based zooming/pinching is useless expect when zooming into an unzoomed image. Once the image has been zoomed any zoom/pinch action will result in unexpected behaviour.