hanggrian / socialview

Android TextView and EditText with hashtag, mention, and hyperlink support
https://hendraanggrian.github.io/socialview/
Apache License 2.0
322 stars 81 forks source link

Issues with listeners #116

Closed sharmamohit096 closed 10 months ago

sharmamohit096 commented 2 years ago

If there are mentions users or hash or simple text all are present in and I want all separate clicks on simple text mentions and hash. SetOnClick and other listener all will execute at the same time.

arthtilva commented 2 years ago

did you got solution for this? as its calling click listener also along with mention and hashtag listener.

sharmamohit096 commented 2 years ago

For now i removed click event on text just using the hash tag and mention listener using the spannable text

hanggrian commented 11 months ago

I don't quite understand this. You can already setOnHashtagClickListener and setOnMentionClickListener, both require SocialView.OnClickListener.

Or perhaps, do you mean you have a custom View.OnClickListener that inadvertently triggers SocialView.OnClickListener?

hanggrian commented 10 months ago

Closed for inactivity.