如果页面上的URL或在其上的电话号码是不是链接有什么办法有WebView中识别它,并自动把它变成一个链接像您可以TextView的 S'
使用a,TextView您只需将其android:autoLink设置为所需的设置:
<TextView
android:autoLink="web|phone"
... />
Run Code Online (Sandbox Code Playgroud)
但我找不到任何等价物WebView.
我正在开发一个带phonegap + sencha touch2 + android的应用程序.我有一个面板显示包含电子邮件的各种内容,一些文本形式的数字.因为它是一个WebView,当我点击数字,并且默认的MailCompose活动开始,当我点击数字拨号器活动开始.如何禁止这种情况发生.在为WebView加载url或web设置之前,是否有一些我在android端缺少的配置.或者来自Phonegap的东西,因为当我看到log cat它显示以下行 -
DroidGap.startActivityForResult(intent,-1)
android-intent android-webview android-websettings sencha-touch-2 cordova