title: Android textview show link and no underlined link web
body: <p>i have some error about textview show link web.i want to no underlined link web.i have reading some example, but it have not resolution.thanks
  It is code :</p>
  
  <pre><code> TextView txWebview;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_demo_question);
          txWebview = (TextView) findViewById(R.id.txWebview);
          txWebview.setText(
                                   Html.fromHtml("http://www.google.com"));
          stripUnderlines(txWebview);
  
      }
      public class URLSpanNoUnderline extends URLSpan {
          public URLSpanNoUnderline(String url) {
              super(url);
          }
          @Override public void updateDrawState(TextPaint ds) {
              super.updateDrawState(ds);
              ds.setUnderlineText(false);
          }
      }
      private void stripUnderlines(TextView textView) {
          Spannable s = new SpannableString(textView.getText());
          URLSpan[] spans = s.getSpans(0, s.length(), URLSpan.class);
          for (URLSpan span: spans) {
              int start = s.getSpanStart(span);
              int end = s.getSpanEnd(span);
              s.removeSpan(span);
              span = new URLSpanNoUnderline(span.getURL());
              s.setSpan(span, start, end, 0);
          }
          textView.setText(s);
      }
  </code></pre>
  
  <p>and xml :</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:tools="http://schemas.android.com/tools"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  tools:context=".DemoQuestionActivity"&gt;
  
    &lt;TextView
        android:id="@+id/txWebview"
        android:autoLink="web"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>but result no correct:<img src="https://i.stack.imgur.com/F0BKG.png" alt="enter image description here"></p>