title: How to change the color of underline in android
body: <p>I am trying to change the color of underline in textView,I came across the link</p>
  
  <p><a href="https://stackoverflow.com/questions/19976977/how-to-get-underlinespan-with-another-color-in-android">How to get UnderlineSpan with another color in Android?</a></p>
  
  <p>But if i tried to implement that,I am not getting color</p>
  
  <p>This is my code</p>
  
  <pre><code>String middleStringText = MyTextView.getText().toString();
  Spannable spannable1 = new SpannableString(middleStringText);
  CustomUnderLineSpan underLineSpan = new CustomUnderLineSpan(Color.YELLOW,2, 5);
  spannable1.setSpan(underLineSpan, 0, 10, spannable1.SPAN_EXCLUSIVE_EXCLUSIVE);
  MyTextView.setText(spannable1, TextView.BufferType.SPANNABLE);
  </code></pre>
  
  <p>Have anyone tried similar sort of implementation?</p>