ViewPager内嵌MapView导致左右滑动冲突
解决办法:重写ViewPager public class MyViewPager extends ViewPager { public MyViewPager(@NonNull Context context) { super(context); } public MyViewPager(@NonNull Context context, @Nullable AttributeSet attrs) { super(context, attrs); } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { return false; } } 在xml中将ViewPager标签替换为MyViewPager标签 来源: oschina 链接: https://my.oschina.net/u/3732258/blog/4716188