比如我页面上有一个13574939749这样一个数字。因为这个数字类似于一个手机号码,那么这个数字上会有一个特殊的链接点。如果一点击他,他就会跳到拨号上去,我想问这个功能怎么取消啊。

解决方案 »

  1.   

    TextView可以设setAutoLinkMask(Linkify.PHONE_NUMBERS);
      

  2.   

     只有TextView可链接到Constant Value  Description
    none 0x00  Match no patterns (default).
    web 0x01  Match Web URLs.
    email 0x02  Match email addresses.
    phone 0x04  Match phone numbers.
    map 0x08  Match map addresses.
    all 0x0f  Match all patterns (equivalent to web|email|phone|map).
      

  3.   


    但是为啥我的WEBVIEW上可以链接上
      

  4.   


    yourWebView.loadUrl("javascript:(function(){ /* code that creates links */ })()");
      

  5.   

    yourWebView.loadUrl("javascript:(function(){ /* code that creates links */ })()");
    能写个例子或者解释下么。谢谢