在Android的检测捏 [英] Detecting pinch in Android

查看:195
本文介绍了在Android的检测捏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要处理的事件捏在我的Andr​​oid应用程序,以放大和缩小。

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

我相信Android 2.0的具有多点触控功能,并且听说了Android 1.6可能会或可能不会取决于设备的支持。

I believe Android 2.0 has multi-touch functionality, and heard that Android 1.6 might or might not support it depending of the device.

什么是检测掐事件的最好方式,同时降低摆好对于不支持的设备?我瞄准了Android 1.5以上。

What's the best way to detect pinch events, while degrading gracefully for devices that don't support it? I'm targeting Android 1.5 upwards.

推荐答案

一个伟大的文章由Ed伯内特(你好Android的作者)的多点触摸(包括双指缩放)可以在这里找到:<一href="http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2/1747">http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2/1747

A great article by Ed Burnette (Hello Android Author) on multi touch (including pinch zoom) can be found here: http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2/1747

下面是在Android开发者博客关于采取较新的API能力的优势,在支持他们的设备,而优雅地继续支持旧设备的文章。 <一href="http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html">http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html

Here's an article on the Android developer blog about taking advantage of capability of the newer APIs on devices that support them, while gracefully continuing to support older devices. http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html

这篇关于在Android的检测捏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆