Example usage for android.view MotionEvent ACTION_POINTER_3_UP

List of usage examples for android.view MotionEvent ACTION_POINTER_3_UP

Introduction

In this page you can find the example usage for android.view MotionEvent ACTION_POINTER_3_UP.

Prototype

int ACTION_POINTER_3_UP

To view the source code for android.view MotionEvent ACTION_POINTER_3_UP.

Click Source Link

Usage

From source file:com.idrv.coach.ui.view.LoopViewPager.java

@Override
public boolean onTouchEvent(MotionEvent ev) {
    switch (MotionEventCompat.getActionMasked(ev)) {
    case MotionEvent.ACTION_DOWN:
    case MotionEvent.ACTION_MOVE:
    case MotionEventCompat.ACTION_POINTER_DOWN:
        mHandler.removeMessages(AUTO_SCROLL_MESSAGE);
        break;/*  ww w  .ja v  a 2  s  .  c o m*/
    case MotionEvent.ACTION_UP:
    case MotionEvent.ACTION_POINTER_UP:
    case MotionEvent.ACTION_POINTER_2_UP:
    case MotionEvent.ACTION_POINTER_3_UP:
    case MotionEvent.ACTION_CANCEL:
        mHandler.removeMessages(AUTO_SCROLL_MESSAGE);
        mHandler.sendEmptyMessageDelayed(AUTO_SCROLL_MESSAGE, delayTimeInMills);
        break;
    default:
        break;
    }
    return super.onTouchEvent(ev);
}