Detecting pinch in Android

前端 未结 2 2041
温柔的废话
温柔的废话 2021-02-19 06:35

I would like to handle pinch events in my Android application to zoom in and out.

I believe Android 2.0 has multi-touch functionality, and heard that Android 1.6 might o

2条回答
  •  孤独总比滥情好
    2021-02-19 07:08

    Android 1.6 does not support multi-touch, Android 2.0 and above does, that means that you would need to have different OnTouchHandlers that you can swap in based on the version of Android you detect. For more information about how to implement the pinch-zoom, have a look at this thread.

提交回复
热议问题