java 添加指向TextView的链接。 Linkify。字体:https://stackoverflow.com/questions/4746293/android-linkify-textvie

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java 添加指向TextView的链接。 Linkify。字体:https://stackoverflow.com/questions/4746293/android-linkify-textvie相关的知识,希望对你有一定的参考价值。

Linkify.TransformFilter filter = new Linkify.TransformFilter() {
    @Override public String transformUrl(Matcher match, String url) {
        return "http://support.bidvine.com";
    }
};

Linkify.addLinks(mHelpTextView, Pattern.compile("Help Centre"), null, null,
    filter);

以上是关于java 添加指向TextView的链接。 Linkify。字体:https://stackoverflow.com/questions/4746293/android-linkify-textvie的主要内容,如果未能解决你的问题,请参考以下文章

Java 注释中怎么加入超链接 指向某网址

Android:为TextView添加链接-setMovementMethod

TextView 中添加超链接

求助android开发里,如何部分文字超链接

如何防止 react-router 链接指向新视图的中间?

在Textview中创建超链接[重复]