Android examples for User Interface:Screen Position
get Screen Y location
//package com.java2s; import android.view.View; public class Main { public static float getScreenY(View v) { int[] loc = new int[2]; v.getLocationOnScreen(loc);// www. j av a 2 s .co m return loc[1]; } }