Package io.didomi.sdk.utils
Class CenterVerticalSpan
-
- All Implemented Interfaces:
-
android.text.style.UpdateAppearance,android.text.style.UpdateLayout
public class CenterVerticalSpan extends MetricAffectingSpanClass used to apply vertical centering to text (created initially for the → arrow).
-
-
Constructor Summary
Constructors Constructor Description CenterVerticalSpan(Integer offset)Creates an instance of CenterVerticalSpan with no offset.
-
Method Summary
Modifier and Type Method Description UnitupdateMeasureState(TextPaint textPaint)UnitupdateDrawState(TextPaint textPaint)-
-
Constructor Detail
-
CenterVerticalSpan
CenterVerticalSpan(Integer offset)
Creates an instance of CenterVerticalSpan with no offset.- Parameters:
offset- vertical offset/distance from the center used in case some characters require some additional distance.
-
-
Method Detail
-
updateMeasureState
Unit updateMeasureState(TextPaint textPaint)
-
updateDrawState
Unit updateDrawState(TextPaint textPaint)
-
-
-
-