Package org.robolectric.shadows
Class ShadowStaticLayout
java.lang.Object
org.robolectric.shadows.ShadowStaticLayout
Shadow for android.text.StaticLayout
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
reset()
-
Constructor Details
-
ShadowStaticLayout
public ShadowStaticLayout()
-
-
Method Details
-
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)
-