Package 

Class CustomLetterSpacingSpan

  • All Implemented Interfaces:
    android.text.style.UpdateAppearance , android.text.style.UpdateLayout , com.facebook.react.views.text.ReactSpan

    
    public class CustomLetterSpacingSpan
    extends MetricAffectingSpan implements ReactSpan
                        

    A MetricAffectingSpan that allows to set the letter spacing on the selected text span.

    The letter spacing is specified in pixels, which are converted to ems at paint time; this span must therefore be applied after any spans affecting font size.

    • Method Summary

      Modifier and Type Method Description
      void updateDrawState(TextPaint paint)
      void updateMeasureState(TextPaint paint)
      • 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