how to give underline color different and textcolor different to a Textview
<p>I am trying this but it does not work for me</p>

<pre><code> Paint p = new Paint();
 p.setColor(ContextCompat.getColor(textView.getContext(),android.R.color.holo_red_dark));
 textView.setPaintFlags(p.getColor());
 textView.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG);
</code></pre>