Android examples for User Interface:View Position
get View On Screen and return location
//package com.java2s; import android.view.View; public class Main { public static int[] getViewOnScreen(View view) { int[] location = new int[2]; if (null != view) { view.getLocationOnScreen(location); }/*from w w w . j ava 2s. c o m*/ return location; } }