Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/199.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android中的MotionEvent操作_Android - Fatal编程技术网

android中的MotionEvent操作

android中的MotionEvent操作,android,Android,我正在研究MotionEvent,通过它我可以得到不同的手势检测事件 switch (event.getAction()) { case MotionEvent.ACTION_CANCEL: System.out.println("cancel event fire"); break; case MotionEvent.ACTION_MOVE: //System.out.println("Mo

我正在研究
MotionEvent
,通过它我可以得到不同的手势检测事件

switch (event.getAction()) {
        case MotionEvent.ACTION_CANCEL:
            System.out.println("cancel event fire");
            break;
        case MotionEvent.ACTION_MOVE:
            //System.out.println("Move event fire");
        case MotionEvent.ACTION_OUTSIDE:
            //System.out.println("ACTION_OUTSIDE event fire");
            break;
        case MotionEvent.ACTION_POINTER_ID_SHIFT:
            System.out.println("ACTION_POINTER_ID_SHIFT event fire");
            break;
        case MotionEvent.ACTION_DOWN:
            System.out.println("ACTION_POINTER_ID_SHIFT event fire");
            break;
        default:
            break;
        }

这很好,但现在我需要任何
MotionEvent
方法来检测是否从屏幕上移除我的指纹。那么是否存在任何事件,如果没有,请提供同等的解决方案来检测手指从屏幕上移除

case MotionEvent.ACTION_UP:
//do stuff
break;
文件会告诉你这一点