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().
Display display = getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size); view.measure(size.x, size.y); int width = view.getMeasuredWidth(); int height = view.getMeasuredHeight();