Two HorizontalScrollView are required to implement horizontal scrolling function is in the parent sub HorizontalScrollView HorizontalScrollView above sub HorizontalScrollView slide at the time, or slide the parent HorizontalScrollView sub HorizontalScrollView no sliding, I would like to do the slide sub HorizontalScrollView time, but the child will not slip sliding HorizontalScrollView parent HorizontalScrollView, just outside the sliding sub-region HorizontalScrollView when it can slide parent HorizontalScrollView, in IOS follows is no problem, no need to set up, in Andrews is not also need to set the following What is it? My son HorizontalScrollView is no problem, I took to re-build an interface that can be added to slide
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Said short point is then nested inside a HorizontalScrollView a HorizontalScrollView, rolling nested HorizontalScrollView not achieve the level of nested HorizontalScrollView slide in the above words or sliding outer HorizontalScrollView
Reply:
The problem is to pass the touch transmission direction, the reference http://blog.csdn.net/yunjinwang/article/details/8072070
Event HorizontalScrollView rewriting the outer slide to the following sub HorizontalScrollView, passed down
public boolean onInterceptTouchEvent (MotionEvent ev) {
/ / TODO Auto-generated method stub
/ / Return super.onInterceptTouchEvent (ev);
return false;
}
No comments:
Post a Comment