I have an empty TextView set for my ListView. When there is no data, it shows the empty text, where I have description that they should go to Contacts application.
How can I linkify “Contacts” word so when tapped opens the Contacts application?
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.
Try setting up a
Linkifyrule to thecontent://URL of the contact in question. Though I am not certain what the pattern would be —Linkifyis designed for things that are obvious regexes. If all you want is for them to tap on the description as a whole, set up anOnClickListenerfor it.