For Eg :
Follow @SoccerBible, RT this & if Ronaldo scores
https://bit.ly/133/com tonight we’ll give away a pair of Nike Clash
Vapor 8’s to one lucky winner! #RonaldoComp
In my listview component. Where i am showing list of tweets. I have colored the @,# and urls in the tweet text. The all are dynamically clickable.
My question is how can i make the non-colored text as clickable. I have used Linkify.addLinks and Pattern API to make them clickable. But i wanted the non @,# and url text to be clicakble without adding any color to it.
Thanks,
dominic
For twitter app, I had also the same requirement to click on handles of tweets and also click on the text of tweet to get Tweet detail.
For that I have used this LinkEnabledTextView and that become easy for me to do the task.
I just added the class in my project and then in List Item instead simple TextView I used object/instance of the LinkEnabledTextView.
There is a complete demo in above link, Please check that.
EDIT: Adapter Code Specially check onTextLinkClick() and then holder.twtdata.setOnClickListener()