- 博客(2)
- 收藏
- 关注
原创 LinearLayout 和 RelativeLayout onMeasure理解(一)
记录自己的理解,如果有错误 请大家指正 谢谢人们说估计使用RelativeLayout而不是LinearLayout,因为LinearLayout比relativeLayout多测量一次,事实上是这样吗?我们来详细看看1、LinearLayout 有两种模式,VERTICAL和HORIZONTAL所以也有两种测量方式@Override protected void onMe
2017-03-29 21:27:45 1053
原创 ScrollView---------onMeasure解析
理解原理,阅读源码,否则你只是个机器protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); //是否填满view视图,没有填满就不用滑动 if (!mF
2017-03-26 15:37:10 802
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人