create MotionEvent Action Move - Android User Interface

Android examples for User Interface:MotionEvent

Description

create MotionEvent Action Move

Demo Code


//package com.java2s;
import android.view.MotionEvent;

public class Main {
    public static MotionEvent createActionMove(float x, float y) {
        return MotionEvent.obtain(0, 0, MotionEvent.ACTION_MOVE, x, y, 0);
    }/*from   w  w  w.j  a  va2 s  .  com*/
}

Related Tutorials