手势识别官方教程(1)目录

   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 gestures. Android provides a variety of APIs to help you create and detect gestures.

  Although your app should not depend on touch gestures for basic behaviors (since the gestures may not be available to all users in all contexts), adding touch-based interaction to your app can greatly increase its usefulness and appeal.

  To provide users with a consistent, intuitive experience, your app should follow the accepted Android conventions for touch gestures. The Gestures design guide shows you how to use common gestures in Android apps. Also see the Design Guide for Touch Feedback.

Lessons

Detecting Common Gestures   Learn how to detect basic touch gestures such as scrolling, flinging, and double-tapping, using  GestureDetector. Tracking Movement   Learn how to track movement. Animating a Scroll Gesture   Learn how to use scrollers ( Scroller or  OverScroller) to produce a scrolling animation in response to a touch event. Handling Multi-Touch Gestures   Learn how to detect multi-pointer (finger) gestures. Dragging and Scaling   Learn how to implement touch-based dragging and scaling. Managing Touch Events in a ViewGroup   Learn how to manage touch events in a  ViewGroup to ensure that touch events are correctly dispatched to their target views.

转载于:https://www.cnblogs.com/sjjg/p/4857979.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值