I have a ViewPager that contains two fragments. In any of the fragments I can touch a place, swipe to switch to another fragment. One of the fragments
ViewPager
fragment
you can override onTouchEvent() of the TextView:
@Override public boolean onTouchEvent(MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_MOVE) { return false; } return super.onTouchEvent(event); }