/**
* Applies the given {@code span} to the specified range from
*
* @param targetRange the range were the span will be applied to
* @param span the span to be applied
*/
@SuppressWarnings("WeakerAccess")
@VisibleForTesting
protected void addSpan(@NonNull TargetRange targetRange, @NonNull Object span) {
final int start = targetRange.getStart();
final int end = targetRange.getEnd();
// Added 1 to the span, because it seems that internally it does exclusive range
spannableContent.setSpan(span, start, end + 1, spanFlags);
}
SpanEZ.java 文件源码
java
阅读 40
收藏 0
点赞 0
评论 0
项目:SpanEZ
作者:
评论列表
文章目录