Class CenterVerticalSpan

  • All Implemented Interfaces:
    android.text.style.UpdateAppearance , android.text.style.UpdateLayout

    
    public class CenterVerticalSpan
    extends MetricAffectingSpan
                        

    Class used to apply vertical centering to text (created initially for the → arrow).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      CenterVerticalSpan(Integer offset) Creates an instance of CenterVerticalSpan with no offset.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit updateMeasureState(TextPaint textPaint)
      Unit updateDrawState(TextPaint textPaint)
      • Methods inherited from class android.text.style.MetricAffectingSpan

        getUnderlying
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.