安卓:通过在TextView的链接开始活动 [英] Android: Start activity via link in TextView
问题描述
我有一个TextView,我充满HTML和linkify它,然后。一些在HTML中的链接都在特殊的格式,这意味着它们链接到其他活动,在我的项目,而不是正常的URL链接。是否有可能拦截在TextView的这种链接的点击并执行自定义操作的情况下,链接是特殊的格式?
I have a TextView which I fill with HTML and linkify it then. Some of the links in HTML are in special format and meant to be links to other activities in my project, not normal URL links. Is it possible to intercept clicks on such links in TextView and do custom action in case the link is in special format?
感谢。
推荐答案
有关如何管理链接点击已达后,应该回答你的问题的质疑。 这里是链接: <一href="http://stackoverflow.com/questions/1697084/handle-textview-link-click-in-my-android-app">handle TextView的链接点击我的Android应用程序
A question about how to manage link click has already been post and should answer your question. Here is the link : handle textview link click in my android app
这篇关于安卓:通过在TextView的链接开始活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!