android - Underlined TextView is not anti-aliased -
when trying make text underlined:
setpaintflags(paint.underline_text_flag);
textview
becomes non anti-aliased. if enable anti-aliasing:
getpaint().setantialias(true)
then becomes anti-aliased.
is there connection between anti-aliasing , paint.underline_text_flag
?
there no connection betwenn anti-aliasing , paint.underline_text_flag
.
but difference setpaintflags(paint.underline_text_flag)
remove default existing flags & set current flag paint.underline_text_flag
only. try below code keep existing flags & add new flag
yourtextview.setpaintflags(yourtextview.getpaintflags() | paint.underline_text_flag);
Comments
Post a Comment