首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

无法理解的onMeasure(int widthMeasureSpec, int heightMeasureSpec),该如何解决

2012-03-09 
无法理解的onMeasure(int widthMeasureSpec, int heightMeasureSpec)自己继承ViewGroup实现一个视图。重写p

无法理解的onMeasure(int widthMeasureSpec, int heightMeasureSpec)
自己继承ViewGroup实现一个视图。重写protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
发现执行该函数时widthMeasureSpec值为1073742304,heightMeasureSpec值为-2147482923。

这两个值是什么意思?

谢谢。

[解决办法]
恭喜楼主解决问题

热点排行