ScrollView里嵌套ListView,如何禁用ListView的滚动事件,或者触发ListView滚动时调用父元素ScrollView的滚动事件?
我参照了这里的做法http://blog.csdn.net/centralperk/article/details/22088499但还是达不[email protected]
我的ListView高度是根据item个数高度计算出来的,目前的情况是滑动ScrollView到ListView的底部之后再想滑上去却滑不动了
------解决思路----------------------
重写listview,重写 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec){
int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
MeasureSpec.AT_MOST);
super.onMeasure(widthMeasureSpec, expandSpec);
}这样listview就不会滑动了。。