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;