public static interface TouchInterceptionFrameLayout.TouchInterceptionListener
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
onDownMotionEvent(android.view.MotionEvent ev)
Called if the down motion event is intercepted by this layout.
|
void |
onMoveMotionEvent(android.view.MotionEvent ev,
float diffX,
float diffY)
Called if the move motion event is intercepted by this layout.
|
void |
onUpOrCancelMotionEvent(android.view.MotionEvent ev)
Called if the up (or cancel) motion event is intercepted by this layout.
|
boolean |
shouldInterceptTouchEvent(android.view.MotionEvent ev,
boolean moving,
float diffX,
float diffY)
Determines whether the layout should intercept this event.
|
boolean shouldInterceptTouchEvent(android.view.MotionEvent ev,
boolean moving,
float diffX,
float diffY)
ev - motion eventmoving - true if this event is ACTION_MOVE typediffX - difference between previous X and current X, if moving is truediffY - difference between previous Y and current Y, if moving is truevoid onDownMotionEvent(android.view.MotionEvent ev)
ev - motion eventvoid onMoveMotionEvent(android.view.MotionEvent ev,
float diffX,
float diffY)
ev - motion eventdiffX - difference between previous X and current XdiffY - difference between previous Y and current Yvoid onUpOrCancelMotionEvent(android.view.MotionEvent ev)
ev - motion event