引用:http://topic.csdn.net/u/20100917/23/d14fcc0b-e6a3-436f-8cc0-8bc6bdbc58f8.html

private GestureDetector mGestureDetector;

 

mGestureDetector = new GestureDetector(this); 

 

 

@Override  
public boolean dispatchTouchEvent(MotionEvent event) {  
if(mGestureDetector.onTouchEvent(event)){  
event.setAction(MotionEvent.ACTION_CANCEL);  
}  
return super.dispatchTouchEvent(event);  
}  

相关文章:

  • 2022-01-20
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2021-09-02
  • 2021-08-24
猜你喜欢
  • 2021-10-28
  • 2022-12-23
  • 2021-07-02
  • 2023-03-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案