开发者

How to linkify to in-built apps like Contacts?

开发者 https://www.devze.com 2022-12-24 03:54 出处:网络
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 g开发者_JS百科o to 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 g开发者_JS百科o 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消