ViewTreeObserver
ViewTreeObserver vto =textViewLeft.getViewTreeObserver();vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { if (Build.VERSION.SDK_INT < 16) { textViewLeft.getViewTreeObserver().removeGlobalOnLayoutListener(this); } else { textViewLeft.getViewTreeObserver().removeOnGlobalLayoutListener(this); } }});