Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle 2 types of clicks on autolinktextview? #26

Open
bala-suresh opened this issue Jun 22, 2018 · 3 comments
Open

How to handle 2 types of clicks on autolinktextview? #26

bala-suresh opened this issue Jun 22, 2018 · 3 comments

Comments

@bala-suresh
Copy link

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.
@ghost
Copy link

ghost commented Aug 31, 2018

@bala-suresh : Did you figure this out?

@PeterOla
Copy link

Any luck with this please?

@joxshaf
Copy link

joxshaf commented Dec 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants