Android examples for User Interface:TextView
get TextView Center X
//package com.java2s; import android.widget.TextView; public class Main { public static float getTextViewCenterX(TextView textView) { float x = (textView.getLeft() + textView.getRight()) / 2; return x; }/*from w w w. j a va 2 s .c o m*/ }