摘要: View的高宽是由View本身和Parent容器共同决定的。 getMeasuredWidth() 和 getWidth() 分别对应于视图绘制的 measure 和 layout 阶段。getMeasuredWidth()获取的是View原始的大小,也就是这个View在XML文件中配置或者是代码中 阅读全文
posted @ 2020-09-04 11:02 夜行过客 阅读(916) 评论(0) 推荐(0) 编辑