1 view.measure(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); 2 int width = view.getMeasuredWidth(); 3 int height = view.getMeasuredHeight();
1 view.measure(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); 2 int width = view.getMeasuredWidth(); 3 int height = view.getMeasuredHeight();