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);
    } 
} 
Experience pair programming with AI  Get Codota for Java