随笔分类 -  Android 手势识别

摘要:onInterceptTouchEvent可在onTouchEvent()前拦截触摸事件, ViewConfiguration得到触摸的属性如速度,距离等, TouchDelegate控制view展开 Managing Touch Events in a ViewGroup Handling tou 阅读全文
posted @ 2015-10-11 18:53 f9q 阅读(485) 评论(0) 推荐(0)
摘要:1.Use Touch to Perform Scaling As discussed in Detecting Common Gestures, GestureDetector helps you detect common gestures used by Android such as scr 阅读全文
posted @ 2015-10-08 18:06 f9q 阅读(1708) 评论(0) 推荐(1)
摘要:Dragging This lesson describes how to use touch gestures to drag, using onTouchEvent() to intercept touch events. 1.Drag an Object If you are targetin 阅读全文
posted @ 2015-10-07 19:23 f9q 阅读(551) 评论(0) 推荐(0)
摘要:Handling Multi-Touch Gestures A multi-touch gesture is when multiple pointers (fingers) touch the screen at the same time. This lesson describes how t 阅读全文
posted @ 2015-10-07 18:55 f9q 阅读(428) 评论(0) 推荐(0)
摘要:Animating a Scroll Gesture In Android, scrolling is typically achieved by using the ScrollView class. Any standard layout that might extend beyond the 阅读全文
posted @ 2015-10-07 18:44 f9q 阅读(452) 评论(0) 推荐(0)
摘要:Tracking Movement This lesson describes how to track movement in touch events. A new onTouchEvent() is triggered with an ACTION_MOVE event whenever th 阅读全文
posted @ 2015-10-07 17:18 f9q 阅读(658) 评论(0) 推荐(0)
摘要:简介 基本步骤: Detecting Common Gestures A "touch gesture" occurs when a user places one or more fingers on the touch screen, and your application interpret 阅读全文
posted @ 2015-10-07 11:38 f9q 阅读(585) 评论(0) 推荐(0)
摘要:docs/training/gestures/index.html Using Touch Gestures This class describes how to write apps that allow users to interact with an app via touch gestu 阅读全文
posted @ 2015-10-06 23:08 f9q 阅读(296) 评论(0) 推荐(0)