-
- All Implemented Interfaces:
-
android.text.style.UpdateAppearance,android.text.style.UpdateLayout
public final class CustomMentionSpan extends ReplacementSpan
Wrapper for a ReplacementSpan which does nothing except delegate to an underlying span. It is used to allow reuse of the same underlying span across multiple ranges of a spanned text.
-
-
Field Summary
Fields Modifier and Type Field Description private final ReplacementSpanprovidedSpanprivate final Stringurl
-
Constructor Summary
Constructors Constructor Description CustomMentionSpan(ReplacementSpan providedSpan, String url)
-
Method Summary
Modifier and Type Method Description final ReplacementSpangetProvidedSpan()final StringgetUrl()Unitdraw(Canvas canvas, CharSequence text, Integer start, Integer end, Float x, Integer top, Integer y, Integer bottom, Paint paint)IntegergetSize(Paint paint, CharSequence text, Integer start, Integer end, Paint.FontMetricsInt fm)-
Methods inherited from class io.element.android.wysiwyg.view.spans.CustomMentionSpan
getContentDescription, setContentDescription, updateDrawState, updateMeasureState -
Methods inherited from class android.text.style.ReplacementSpan
getUnderlying -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CustomMentionSpan
CustomMentionSpan(ReplacementSpan providedSpan, String url)
-
-
Method Detail
-
getProvidedSpan
final ReplacementSpan getProvidedSpan()
-
draw
Unit draw(Canvas canvas, CharSequence text, Integer start, Integer end, Float x, Integer top, Integer y, Integer bottom, Paint paint)
-
getSize
Integer getSize(Paint paint, CharSequence text, Integer start, Integer end, Paint.FontMetricsInt fm)
-
-
-
-