摘要: Android中跟Touch事件有关的事件有三个: 1、public boolean dispatchTouchEvent(MotionEvent ev):传递Touch事件至target view。 2、public boolean onInterceptTouchEvent(MotionEvent ev):在ViewGroup中定义,用于拦截Touch事件的传递。 3、public boolean onTouchEvent(MotionEvent event):Touch事件处理函数。先说下事件传递的两种方式: 1、隧道方式:从根元素依次往下传递直到最内层子元素或在中间... 阅读全文
posted @ 2012-05-09 11:34 咖喱牛排炒饭 阅读(190) 评论(0) 推荐(0)