Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {

    public static int[] getViewItemLocation(View view) {
        int[] location = new int[2]; //each item location
        view.getLocationInWindow(location);

        return location;
    }
}