AutoLinkTextView icon indicating copy to clipboard operation
AutoLinkTextView copied to clipboard

How to handle 2 types of clicks on autolinktextview?

Open bala-suresh opened this issue 7 years ago • 3 comments

Hi, i am using this library to display hashtags in listview. working perfectly fine. But i want two types of clicks for AutoLinkTextview.

  1. when clicked on hashtag in AutoLinkTextview - Working perfect
  2. when clicked on AutoLinkTextview (not on Hashtag, side of hashtag) - Need to navigate to detail page. (it's not happening) how to achieve this? Thank you.

bala-suresh avatar Jun 22 '18 03:06 bala-suresh

@bala-suresh : Did you figure this out?

ghost avatar Aug 31 '18 14:08 ghost

Any luck with this please?

PeterOla avatar Jan 18 '19 14:01 PeterOla

I found a work around and it's working 100%

  1. Make boolean isClickableTextClicked = false
  2. Inside auto link click listener set isClickableTextClicked = true in first line
  3. Make regular onclicklistener and check if isClickableTextClicked = false then open details.

joxshaf avatar Dec 19 '23 19:12 joxshaf