Android Linkify from HTML in TextView

I have HTML with standard links which correspond to commands I'd like to handle.

This is <a href="CMD:nice">a command</a>.

I populate a TextView with Html.fromHtml()

How can I use the Android Linkify system to convert the links to Linkify'ed ones?


found that the WikiNotes example project from Google does exactly that. It uses the Linkify infrastructure with a Provider and MIMIE type to load the right Activity.

链接地址: http://www.djcxy.com/p/74636.html

上一篇: 如何通过Linkify在TextView上点击链接时处理

下一篇: 在TextView中从Android中链接HTML