Android: Start activity via link in TextView [duplicate]

放肆的年华 提交于 2020-01-19 12:40:46

问题


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?

Thanks.


回答1:


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



来源:https://stackoverflow.com/questions/4320561/android-start-activity-via-link-in-textview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!