百度出来那个重写onMeasured方法没啥用啊,有没正确的解决方式???怎么样才能全部显示出来
http://www.2cto.com/kf/201608/532555.html
你是嵌套ScrollView导致的么。
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
// TODO Auto-generated method stub
int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
MeasureSpec.AT_MOST);
super.onMeasure(widthMeasureSpec, expandSpec);
}
1,把你下面的控件做footview 给gridview .
2 ,重写gridview 也不难不是吗,不就是计算一下高度。