TomTaila
TomTaila

Reputation: 1694

In Android, how can I implement text where some of the words have touch listeners to detect tap and hold-down gestures?

I would like to implement text where some words in the text have listeners for both tap and hold-down gestures. What is the best way of doing this? An example would be extremely helpful

Upvotes: 0

Views: 42

Answers (1)

Giovanni
Giovanni

Reputation: 11

The best way is ClickableSpan. Remember to use TextView.setLinksClickable(true);

Upvotes: 1

Related Questions