android 处理双击事件
捕捉View的双击事件,用GestureDetector
?
首先类要实现接口OnGestureListener
?
ScrollView scrollView = (ScrollView) findViewById(R.id.scroll_layout); scrollView.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { return gestureScanner.onTouchEvent(event); } });?