Gestures//手势

Gestures//手势

Gestures allow users to interact with your app by manipulating the screen objects you provide. The following table shows the core gesture set that is supported in Android.
//手势允许用户通过操控你提供的屏幕对象和你的应用交互。下面的表格展示了安卓支持的核心手势。
 
Touch

Triggers the default functionality for a given item.

  • Action

    Press, lift

Long press

Enters data selection mode. Allows you to select one or more items in a view and act upon the data using a contextual action bar. Avoid using long press for showing contextual menus.

  • Action

    Press, wait, lift

Swipe or drag

Scrolls overflowing content, or navigates between views in the same hierarchy. Swipes are quick and affect the screen even after the finger is picked up. Drags are slower and more precise, and the screen stops responding when the finger is picked up.

  • Action

    Press, move, lift



//触控
对于一个给定的项目引发一个默认的函数。
Action://行为
压下,提起
//长按
进入数据选择模式.允许你通过使用一个上下文的操作栏选择一种或者更多项目在你的视图里.避免为了显示上下文的菜单而长时间长按。
Action:
压下,等待,提起
//猛击或者拖
卷动过多的内容,或者在相同层级的不同视图间的导航。猛击快速影响屏幕及时手指已经拿起了。拖动是慢些和精确些的,并且在手指拿起时屏幕停止了相应。
Action:
压下,移动,提起
 
Long press drag

Rearranges data within a view, or moves data into a container (e.g. folders on Home Screen).

  • Action

    Long press, move, lift

Double touch

Scales up a standard amount around the target with each repeated gesture until reaching maximum scale. For nested views, scales up the smallest targetable view, or returns it to its original scale. Also used as a secondary gesture for text selection.

  • Action

    Two touches in quick succession

Double touch drag

Scales content by pushing away or pulling closer, centered around gesture.

  • Action

    A single touch followed in quick succession by a drag up or down:

    • Dragging up decreases content scale
    • Dragging down increases content scale
    • Reversing drag direction reverses scaling.

//长按拖动
在一个视图里面重新整理数据,或者移动数据到一个容器里(例如在主页里的文件夹)
Action:长按,移动,提起
//双击



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值