Class ShadowStaticLayout

java.lang.Object
org.robolectric.shadows.ShadowStaticLayout

@Implements(android.text.StaticLayout.class) public class ShadowStaticLayout extends Object
Shadow for android.text.StaticLayout
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static int
    nComputeLineBreaks(long nativePtr, char[] text, long measuredTextPtr, int length, float firstWidth, int firstWidthLineCount, float restWidth, int[] variableTabStops, int defaultTabStop, int indentsOffset, Object recycle, int recycleLength, int[] recycleBreaks, float[] recycleWidths, float[] recycleAscents, float[] recycleDescents, int[] recycleFlags, float[] charWidths)
     
    static int
    nComputeLineBreaks(long nativePtr, Object recycle, int[] recycleBreaks, float[] recycleWidths, int[] recycleFlags, int recycleLength)
     
    static int[]
    nLineBreakOpportunities(String locale, char[] text, int length, int[] recycle)
     
    static void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShadowStaticLayout

      public ShadowStaticLayout()
  • Method Details

    • reset

      @Resetter public static void reset()
    • nLineBreakOpportunities

      @HiddenApi @Implementation(maxSdk=22) public static int[] nLineBreakOpportunities(String locale, char[] text, int length, int[] recycle)
    • nComputeLineBreaks

      @HiddenApi @Implementation(minSdk=23, maxSdk=27) public static int nComputeLineBreaks(long nativePtr, Object recycle, int[] recycleBreaks, float[] recycleWidths, int[] recycleFlags, int recycleLength)
    • nComputeLineBreaks

      @HiddenApi @Implementation(minSdk=28, maxSdk=28) protected static int nComputeLineBreaks(long nativePtr, char[] text, long measuredTextPtr, int length, float firstWidth, int firstWidthLineCount, float restWidth, int[] variableTabStops, int defaultTabStop, int indentsOffset, Object recycle, int recycleLength, int[] recycleBreaks, float[] recycleWidths, float[] recycleAscents, float[] recycleDescents, int[] recycleFlags, float[] charWidths)