Android6.0 以下正常,7.0以上错误
Editable editable = getEditableText();
QuestionClickableSpan[] spans = editable.getSpans(0, editable.length(), QuestionClickableSpan.class);
Arrays.sort(spans, (o1, o2) -> editable.getSpanStart(o1)-editable.getSpanStart(o2));
网友评论