有没有办法让ClickableSpan类的背景四舍五入而不是默认的矩形?这是我的基本自定义ClickableSpan类:
public class TagSpan extends ClickableSpan {
@Override
public void onClick(View widget) {
}
@Override
public void updateDrawState(TextPaint ds) {
ds.setColor(ds.linkColor);
ds.bgColor = Color.GRAY; //Gray rectangle background that would love her corners rounded
ds.setUnderlineText(false);
}
}