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?
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?
Try setting up a Linkify
rule to the content://
URL of the contact in question. Though I am not certain what the pattern would be -- Linkify
is designed for things that are obvious regexes. If all you want is for them to tap on the description as a whole, set up an OnClickListener
for it.