剖析measure()和onmeasure(),初探自定义容器布局

  1. 每一个view 中必定存在一个必调的方法, measure(intint) ,它调用onMeasure(intint)  布局

  2. onMeasure(widthMeasureSpec, heightMeasureSpec)的做用是什么?  spa

  3. 测量view和它的content 得出 widthMeasureSpec  heightMeasureSpec 并保存下来。  .net

  4. measure(widthMeasureSpec, heightMeasureSpec)的做用是什么?  blog

  5. 经过 父布局提供的 widthMeasureSpec,   widthMeasureSpec 来肯定这个View 的 大小, 有多高,有多宽get

具体的博文请点击连接http://blog.csdn.net/zhaoweixing1989/article/details/8139739方法

相关文章
相关标签/搜索