您的位置:首页 > 移动开发 > Android开发

android 自定义view 里onMeasure方法里使用getWidth()=0

2016-11-18 15:02 501 查看
要使用如下方法获取view宽高
int width = getMeasuredWidth());
int height = getMeasuredHeight());
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐