Example usage for android.view MotionEvent transform

List of usage examples for android.view MotionEvent transform

Introduction

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

Prototype

public final void transform(Matrix matrix) 

Source Link

Document

Applies a transformation matrix to all of the points in the event.

Usage

From source file:Main.java

private static MotionEvent transformEventNew(MotionEvent e, Matrix m) {
    MotionEvent newEvent = MotionEvent.obtain(e);
    newEvent.transform(m);
    return newEvent;
}

From source file:Main.java

public static MotionEvent transformEvent(final MotionEvent e, final Matrix m) {
    final MotionEvent newEvent = MotionEvent.obtain(e);
    newEvent.transform(m);
    return newEvent;
}

From source file:Main.java

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
private static MotionEvent transformEventNew(final MotionEvent e, final Matrix m) {
    final MotionEvent newEvent = MotionEvent.obtain(e);
    newEvent.transform(m);
    return newEvent;
}