scrollview和listview的滑动事件会冲突,所以我们设置listview不滚动就可以
public class ExplosiveListView extends ListView { public ExplosiveListView(Context context) { super(context); // TODO Auto-generated constructor stub } // 设置不滚动 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); } }
原文:http://www.cnblogs.com/84126858jmz/p/5127589.html