I am trying to change the color of underline in textView,I came across the link
How to get UnderlineSpan with another color in Android?
But if i tried to implement that,I am not getting color
This is my 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);
Have anyone tried similar sort of implementation?