title: TextView ClickableSpan styling for pressed state
body: <p>I am subclassing ClickableSpan to customize the text style for links in my TextView.</p>
  
  <pre><code>private static class LinkSpan extends ClickableSpan {
      @Override
      public void onClick(View widget) {
           // code...
      }
  
      @Override
      public void updateDrawState(TextPaint ds) {
          super.updateDrawState(ds);
          ds.setUnderlineText(false);
          ds.setTypeface(Typeface.create(ds.getTypeface(), Typeface.BOLD));
          ds.setColor(0xff336699);
      }
  }
  </code></pre>
  
  <p>I want to change the style when it's in a pressed state, or a user touches the link. (like <code>a:hover</code> in css) but I can't figure out a way to get the current state in <code>updateDrawState</code>. </p>
  
  <p>Is there any way to handle this? If I can't change text style, I want to be able to change the background color at least.</p>
  
  <p><strong>EDIT</strong> as pointed by a comment, you can find the answer at <a href="https://stackoverflow.com/questions/20856105/change-the-text-color-of-a-single-clickablespan-when-pressed-without-affecting-o/20905824#20905824">Change the text color of a single ClickableSpan when pressed without affecting other ClickableSpans in the same TextView</a></p>