0

I have a magazine type app which has TextViews on each of the pages, I need to be able to ignore the swipe gesture and pass it to the parent so that when the user drags sideways it moves to the next page instead of trying to scroll the TextView

Anthony Main
  • 6,039
  • 12
  • 64
  • 89

1 Answers1

0

Did you apply Linkify to the text or another MovementMethod? If so Linkify adds a new MovementMethod , LinkMovementMethod and consumes touch events.

Check Android TextView Linkify intercepts with parent View gestures so you have have link detection and touch events go to the parent

Use Linkify to style the text then override onTouchEvent of the TextView to handle only the links

Community
  • 1
  • 1
weakwire
  • 9,284
  • 8
  • 53
  • 78