title: Android: Change the background color of a ClickableSpan when clicked
body: <p>I have a SpannableString with a ClickableSpan as follows</p>
  
  <pre><code>for (int i = 0; i &lt; items.size(); i++) {
              final SpannableString span = new SpannableString(items.get(i));
              final int index=i;
  
              span.setSpan(new ClickableSpan() {
  
                  @Override
                  public void onClick(View widget) {
  
                  }
  
                  @Override
                  public void updateDrawState(TextPaint ds) {
                      ds.setColor(Color.LTGRAY);
                      ds.setUnderlineText(false);
  
                  }
              }, 0, span.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  
              builder.append(span);
          }
  
  //my text view
  txt.setText(builder);
  txt.setMovementMethod(LinkMovementMethod.getInstance());
  </code></pre>
  
  <p>what I want to do is to change the foreground color of the span when clicked.</p>
  
  <p>how can I do this ?</p>