总结之前有道笔记的内容--对于Touch 的不同讲解

Indicates that we are not in the middle of a touch gesture 就是并没有touch事件
static final int TOUCH_MODE_REST = -1;

Indicates we just received the touch event and we are waiting to see if the it is a tap or a
scroll gesture. 只有接收到touch事件之后才能接受其他的,比如up事件等。
static final int TOUCH_MODE_DOWN = 0;

Indicates the touch has been recognized as a tap and we are now waiting to see if the touch is a longpress 这个我还没有太用过,但是看注释应该可以看懂,就是认为是一个tap,然后去等待看这个touch事件是否是一个长按事件。 这个应该是一个过渡的过程吧。
static final int TOUCH_MODE_TAP = 1;

Indicates we have waited for everything we can wait for, but the user's finger is still down

static final int TOUCH_MODE_DONE_WAITING = 2;

Indicates the touch gesture is a scroll 判断当前是一个滑动的状态 我记得系统是通过滑动的距离来
判断当前是一个滑动
static final int TOUCH_MODE_SCROLL = 3;

Indicates the view is in the process of being flung 判断当前是一个比较快滑动的状态。 是通过滑动的距离和时间来判断的。
static final int TOUCH_MODE_FLING = 4;

*Indicates the touch gesture is an overscroll - a scroll beyond the beginning or end. 正在滑动

static final int TOUCH_MODE_OVERSCROLL = 5;

Indicates the view is being flung outside of n ormal content bounds
and will spring back.
static final int TOUCH_MODE_OVERFLING = 6;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值