interface          GestureDetector.OnDoubleTapListener

  interface          GestureDetector.OnGestureListener  在有手势动作发生时,通知的监听器

  class               GestureDetector.SimpleOnGestureListener  当只需要监听部分手势时,用于扩展的便捷类

 

public boolean isLongpressEnabled ()                          如果允许长按事件,则返回true,否则为false

public boolean onTouchEvent (MotionEvent ev)           

public void setIsLongpressEnabled (boolean isLongpressEnabled)

public void setOnDoubleTapListener (GestureDetector.OnDoubleTapListeneronDoubleTapListener

GestureDetector.OnGestureListener


Public Methods
abstract boolean onDown(MotionEvent e)
Notified when a tap occurs with the down MotionEvent that triggered it.
abstract boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
Notified of a fling event when it occurs with the initial on down MotionEvent and the matching up MotionEvent.
abstract void onLongPress(MotionEvent e)
Notified when a long press occurs with the initial on down MotionEvent that trigged it.
abstract boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
Notified when a scroll occurs with the initial on down MotionEvent and the current move MotionEvent.
abstract void onShowPress(MotionEvent e)
The user has performed a down MotionEvent and not performed a move or up yet.
abstract boolean onSingleTapUp(MotionEvent e)
Notified when a tap occurs with the up MotionEvent that triggered it.


相关文章:

  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-10-06
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2022-03-06
  • 2021-09-28
  • 2021-05-21
  • 2021-12-09
相关资源
相似解决方案