当前位置: 代码迷 >> Android >> ExpandableListView和ScrollView并用的有关问题
  详细解决方案

ExpandableListView和ScrollView并用的有关问题

热度:77   发布时间:2016-04-28 05:45:17.0
ExpandableListView和ScrollView并用的问题
用了网上给的方法:重写ExpandableListView
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);  
    }  
但是,效果不行啊。特别不稳定。

------解决方案--------------------
用了网上给的方法:重写ExpandableListView
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);  
    }  
但是,效果不行啊。特别不稳定。
我也不会,帮你顶一下吧。。。