Code example for UnderlineSpan

0
    } 
 
    @Override 
    public void setText(CharSequence text, BufferType type) {
        SpannableString content = new SpannableString(text + " \u00BB");
        content.setSpan(new UnderlineSpan(), 0, text.length(), 0);
 
        super.setText(content, BufferType.SPANNABLE);
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java