I have a text with some words which if we click on and move to other activities.
I tried to search a lot from internet or stack overflow. Is there any technique to solve this issue?
Thanks and best regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it’s about specific words inside a bigger piece of text, mark the clickable words as
URLSpanand override theURLSpan‘sonClick(View widget)method to start the newActivity– by default it will fire off onIntent.ACTION_VIEW. I’m sure you’ll be able to find multiple examples if you do a search here on SO.If you also want to remove the underline that is inherent to the
URLSpan, have a look at this answer.