Open URL in WebView instead of default Browser

前端 未结 6 1896
不思量自难忘°
不思量自难忘° 2020-12-30 07:19

I am creating simple Webview application with some links on textview and open those links in webview instead of default browser. My

6条回答
  •  星月不相逢
    2020-12-30 08:08

    The issue appears to be that Linkify is looking for a scheme to detect links. Without http://, it isn't detecting your links as web URLs. The solution would be to make sure your links include the scheme or define a custom regular expression pattern to match. It's not clear from your sample TextView data what the pattern should be. Here's a page that shows how to use the custom pattern once you work out what it is.

提交回复
热议问题