摘要: 1、当触摸屏幕时,最先执行的是Activity中的 publicbooleandispatchTouchEvent(MotionEvent ev) {if(ev.getAction() == MotionEvent.ACTION_DOWN) { onUserInteraction(); }if(getWindow().superDispatchTouchEvent(ev)) {returntrue; }returnonTouchEvent(ev); }如果某些事件无法监测到,可以重写此方法,优先处理ev,然后再调用super.dispatchTouchEvent。2、Activity中的onT 阅读全文
posted @ 2013-06-05 18:44 tanqiantot 阅读(277) 评论(0) 推荐(0) 编辑