然后容器内的gridview无法拖动
GridView scroll 滚动? 父容器 子容器
------解决方案--------------------
android:measureAllChildren="true"
再试试吧
------解决方案--------------------
按照下面的方法试试
final ScrollView sv = (ScrollView) findViewById(R.id.scroll_layout);
mGridView.setOnTouchListener(new OnTouchListener() {//避免嵌套滚动view的touch事件冲突
@Override
public boolean onTouch(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP)
sv.requestDisallowInterceptTouchEvent(false);
else
sv.requestDisallowInterceptTouchEvent(true);
return false;
}
});