获取视图的宽高

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

 

posted @ 2015-11-19 17:09  我是一颗小草  阅读(283)  评论(0)    收藏  举报