-
- All Implemented Interfaces:
-
android.text.style.LineHeightSpan
,android.text.style.ParagraphStyle
,android.text.style.WrapTogetherSpan
,com.facebook.react.views.text.ReactSpan
public class CustomLineHeightSpan implements LineHeightSpan, ReactSpan
We use a custom LineHeightSpan, because `lineSpacingExtra` is broken. Details here: https://github.com/facebook/react-native/issues/7546
-
-
Constructor Summary
Constructors Constructor Description CustomLineHeightSpan(float height)
-
Method Summary
Modifier and Type Method Description void
chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm)
-
-
Method Detail
-
chooseHeight
void chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm)
-
-
-
-