create MotionEvent Action Down - Android User Interface

Android examples for User Interface:MotionEvent

Description

create MotionEvent Action Down

Demo Code


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

public class Main {
    public static MotionEvent createActionDown(float x, float y) {
        return MotionEvent.obtain(0, 0, MotionEvent.ACTION_DOWN, x, y, 0);
    }//  w  w w  .j  av  a2  s . co  m
}

Related Tutorials