[forward]something about multitouch
来源:互联网 发布:php the right way 编辑:程序博客网 时间:2024/05/14 08:36
Android thinks about touch events in terms of gestures. A gesture in this sense includes all events from the first finger that touches the screen to the last finger that leaves the screen. A single gesture's entire event sequence is always sent to the same view that was picked during the initial ACTION_DOWN unless a parent intercepts the event stream for some reason. If a parent intercepts a child's event stream, the child will get ACTION_CANCEL.
If you're working with multitouch events, always use the value returned by getActionMasked() to determine the action. If you don't need multitouch or are working with an older platform version, you can ignore the ACTION_POINTER_* events.
ACTION_DOWN is for the first finger that touches the screen. This starts the gesture. The pointer data for this finger is always at index 0 in the MotionEvent.
ACTION_POINTER_DOWN is for extra fingers that enter the screen beyond the first. The pointer data for this finger is at the index returned by getActionIndex().
ACTION_POINTER_UP is sent when a finger leaves the screen but at least one finger is still touching it. The last data sample about the finger that went up is at the index returned by getActionIndex().
ACTION_UP is sent when the last finger leaves the screen. The last data sample about the finger that went up is at index 0. This ends the gesture.
ACTION_CANCEL means the entire gesture was aborted for some reason. This ends the gesture.
- [forward]something about multitouch
- Something about ...
- Something about float divide
- something about Tomcat(zz)
- something about Listeners
- something about Macro
- Something about Music
- something about struts
- something about ado
- something about SEO
- Something About Pretect Mode
- something about this week
- Something about Ajax
- something about Ajax Ⅱ
- Something | About db-design
- Something About ! CSS
- Something About FLV视频
- Something about WM_PAINT
- 关于Custom View初步研究
- tinyxml使用
- Extjs3.x 为GridPanel 排序 行拖拽 行数据上移 行数据下移
- 通过建立hash表快速搜索资源
- 线段树和单调队列优化DP---POJ2373解题报告
- [forward]something about multitouch
- android开发笔记
- 关于org.hibernate.ObjectNotFoundException: No row with the given identifier exists 的快捷解决问题
- mysql 整型 数据宽度, 字段的零填充和符号
- C中参数压栈及表达式计算顺序
- POJ 1654 Area
- android通过oauth1.0发表新浪微博
- 用xcode编译mana server源代码
- custom rom collection