How to find the Width of the a view before the view is displayed? I do not want to add a custom view and tap the dimensions in the OnChanged().
You should use OnGlobalLayoutListener which is called for changes on the view, but before it is drawn.
OnGlobalLayoutListener
costumView.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() { @Override public void onGlobalLayout() { costumView.getWidth(); } });