-
- All Implemented Interfaces:
-
android.text.style.UpdateAppearance
,android.text.style.UpdateLayout
,com.facebook.react.views.text.ReactSpan
public class CustomStyleSpan extends MetricAffectingSpan implements ReactSpan
-
-
Constructor Summary
Constructors Constructor Description CustomStyleSpan(int fontStyle, int fontWeight, String fontFeatureSettings, String fontFamily, AssetManager assetManager)
-
Method Summary
Modifier and Type Method Description void
updateDrawState(TextPaint ds)
void
updateMeasureState(TextPaint paint)
int
getStyle()
int
getWeight()
String
getFontFamily()
-
Methods inherited from class android.text.style.MetricAffectingSpan
getUnderlying, updateMeasureState
-
Methods inherited from class android.text.style.CharacterStyle
getUnderlying, updateDrawState, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CustomStyleSpan
CustomStyleSpan(int fontStyle, int fontWeight, String fontFeatureSettings, String fontFamily, AssetManager assetManager)
-
-
Method Detail
-
updateDrawState
void updateDrawState(TextPaint ds)
-
updateMeasureState
void updateMeasureState(TextPaint paint)
-
getStyle
int getStyle()
-
getWeight
int getWeight()
-
getFontFamily
@Nullable() String getFontFamily()
-
-
-
-