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
Asked
Active
Viewed 545 times
0
-
TextView should not be scrollable, what is the parent of the textview? – Yashwanth Kumar Sep 10 '11 at 14:50
1 Answers
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