CustomTypefaceSpan

public class CustomTypefaceSpan


Stripped down version of TypefaceSpan, which can accept a Typeface argument on API levels under 28.

Summary

Public constructors

Public constructors

CustomTypefaceSpan

public CustomTypefaceSpan(@NonNull Typeface typeface)

Public methods

updateDrawState

@Override
@NonNull
public @Override void updateDrawState(@NonNull TextPaint tp)

updateMeasureState

@Override
@NonNull
public @Override void updateMeasureState(@NonNull TextPaint textPaint)