Java tutorial
//package com.java2s; //License from project: Apache License import android.view.View; public class Main { public static float getViewY(View view) { return Math.abs((view.getBottom() - view.getTop()) / 2); } }