ここparentScroll =メインscrollview とchildScroll =あなたのリストビュー
parentScroll.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
Log.v("PARENT", "PARENT TOUCH");
findViewById(R.id.child_scroll).getParent()
.requestDisallowInterceptTouchEvent(false);
return false;
}
});
childScroll.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
Log.v("CHILD", "CHILD TOUCH");
// Disallow the touch request for parent scroll on touch of
// child view
v.getParent().requestDisallowInterceptTouchEvent(true);
return false;
}
});
ロマン・ガイ(アンドロイドエンジニア)あなたが*** *** 'ScrollView内のスクロール可能なビューを使用してはならないこと(http://stackoverflow.com/a/3496042/1521536)[提案] '。この質問はその答えの質問と重複しているようです。 –
[ListViewを折りたたむことなくScrollViewに配置する方法は?](http://stackoverflow.com/questions/3495890/how-can-i-put-a-listview-into-a-scrollview- –