-
- All Implemented Interfaces:
-
android.text.style.UpdateAppearance
,android.text.style.UpdateLayout
,com.facebook.react.views.text.ReactSpan
public class TextInlineViewPlaceholderSpan extends ReplacementSpan implements ReactSpan
TextInlineViewPlaceholderSpan is a span for inlined views that are inside . It computes its size based on the input size. It contains no draw logic, just positioning logic.
-
-
Constructor Summary
Constructors Constructor Description TextInlineViewPlaceholderSpan(int reactTag, int width, int height)
-
Method Summary
Modifier and Type Method Description int
getReactTag()
int
getWidth()
int
getHeight()
int
getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)
void
draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)
-
Methods inherited from class android.text.style.ReplacementSpan
draw, getContentDescription, getSize, setContentDescription, updateDrawState, updateMeasureState
-
Methods inherited from class android.text.style.MetricAffectingSpan
getUnderlying
-
Methods inherited from class android.text.style.CharacterStyle
getUnderlying, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getReactTag
int getReactTag()
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getSize
int getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)
-
draw
void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)
-
-
-
-