- @Override
- protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
- int heightSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
- MeasureSpec.AT_MOST);
- super.onMeasure(widthMeasureSpec, heightSpec);
- }
- //该片段来自于http://www.codesnippet.cn/detail/1510201410647.html
来源: http://www.codesnippet.cn/detail/1510201410647.html