gridview inside the container can then drag
------ Solution ---------------------------- ----------------
android: measureAllChildren = "true"
try it again
------ Solution -------------------------------- ------------
try the following methods in accordance with
final ScrollView sv = (ScrollView) findViewById (R.id.scroll_layout);
mGridView.setOnTouchListener (new OnTouchListener () {/ / Avoid nested scroll view's touch events conflict
@ Override
public boolean onTouch (View v, MotionEvent event) {
if (event.getAction () == MotionEvent.ACTION_UP)
sv.requestDisallowInterceptTouchEvent (false);
else
sv.requestDisallowInterceptTouchEvent (true);
return false;
}
});
------ For reference only ------------------------------- --------
looked farmer uncle article activity group of applications, and then do the next try for yourself, but there is a problem
------ For reference only --- ------------------------------------
http://www.cnblogs.com/over140 / archive/2010/09/07/1820876.html
------ For reference only -------------------------- -------------
ah, thank you, I later found out I did not have what it takes to scroll, it will scroll into LinearLayout it. . . , Then the test was successful
------ For reference only --------------------------------- ------
try the following methods in accordance with
final ScrollView sv = (ScrollView) findViewById (R.id.scroll_layout);
mGridView.setOnTouchListener (new OnTouchListener () {/ / Avoid nested scroll view's touch events conflict
@ Override
public boolean onTouch (View v, MotionEvent event) {
if (event.getAction () == MotionEvent.ACTION_UP)
sv.requestDisallowInterceptTouchEvent (false);
else
sv.requestDisallowInterceptTouchEvent (true);
return false;
}
}); Thank you, this way I wishlists, thank you for your reply, forums and more exciting because of you! ! !
没有评论:
发表评论