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();
转载于:https://www.cnblogs.com/cmgrass/p/4978222.html