title: How to use ClickableSpan, but ignore clicks from the TextView
body: <p>The following code shows how I'm applying a pressed state using a custom ClickableSpan and selector. However, the pressed state is applied whenever I press anywhere on the TextView, not just the ClickableSpan. How do I stop this?</p>
  
  <p><strong>Note: it does not call</strong> <code>onClick</code><strong>, but does apply</strong> <code>state_pressed</code> <strong>from the selector. I want it to do neither.</strong></p>
  
  <p><em>MyView.java</em></p>
  
  <pre><code>SpannableString spanned = new SpannableString("click here");
  spannable.setSpan(new MyClickableSpan() {
          @Override
          public void onClick(View widget) {
              doSomething();
          }
      }, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  textView.setText(spanned);
  textView.setMovementMethod(LinkMovementMethod.getInstance());
  </code></pre>
  
  <p><em>MyClickableSpan.java</em></p>
  
  <pre><code>public abstract class MyClickableSpan extends ClickableSpan {
  
      @Override
      public abstract void onClick(View view);
  
      @Override
      public void updateDrawState(TextPaint ds) {
          super.updateDrawState(ds);
          ds.setUnderlineText(false);
      }
  }
  </code></pre>
  
  <p><em>the TextView</em></p>
  
  <pre><code>&lt;TextView
      android:id="@+id/my_text_view"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textColor="@android:color/white"
      android:textColorLink="@color/my_selector" /&gt;
  </code></pre>
  
  <p><em>my_selector.xml</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:state_pressed="true" android:color="@color/my_color_pressed" /&gt;
      &lt;item android:color="@color/my_color" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Edit note: Added TextView code</strong></p>