摘要:
最近做一个功能需要用到AsyncTask。实现的过程很容易,但是在cancel的时候遇到了一点麻烦。找了很多地方终于找到了比较好的方法,这里跟大家分享一下。根据Android Developer的介绍http://developer.android.com/intl/zh-CN/reference/android/os/AsyncTask.html:AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish resul 阅读全文
摘要:
本文介绍常用的几种种让TextView中文本链接可点击的方法。先介绍Linkify方法,因为我发现它非常好用。Linkify的官方中文介绍,第一句:http://developer.android.com/intl/zh-CN/reference/android/text/util/Linkify.htmlLinkify take a piece of text and a regular expression and turns all of the regex matches in the text into clickable links.可以看出,如果需要使用正则表达式匹配来使文本中的 阅读全文