Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.MotionEvent;
import android.view.View;

public class Main {
    private static boolean isPointerOutside(View v, MotionEvent event) {
        float x = event.getX();
        float y = event.getY();
        if (x < 0 || x > v.getWidth() || y < 0 || y > v.getHeight())
            return true;
        return false;
    }
}