saket / Better-Link-Movement-Method

Attempts to improve how clickable links are detected, highlighted and handled in TextView
Apache License 2.0
780 stars 78 forks source link

Added long press handling support #6

Closed ehehhh closed 6 years ago

ehehhh commented 7 years ago

GestureDetector is used to detect the long press. If a long press is not handled (programmer returns false in callback), then normal click can still be handled.

Addresses issue: #5

ehehhh commented 7 years ago

By the way, I realise that this solution kinda feels "hacked in", but maybe you can get some ideas how to do it better yourself.

saket commented 6 years ago

Adding this support in #7.