Package org.robolectric.shadows
Class ShadowStaticLayout
java.lang.Object
org.robolectric.shadows.ShadowStaticLayout
@Implements(value=android.text.StaticLayout.class,
looseSignatures=true)
public class ShadowStaticLayout
extends Object
Shadow for android.text.StaticLayout
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
nComputeLineBreaks
(Object nativePtr, Object recycle, Object recycleBreaks, Object recycleWidths, Object recycleFlags, Object recycleLength) protected static int
nComputeLineBreaks
(Object nativePtr, Object text, Object measuredTextPtr, Object length, Object firstWidth, Object firstWidthLineCount, Object restWidth, Object variableTabStops, Object defaultTabStop, Object indentsOffset, Object recycle, Object recycleLength, Object recycleBreaks, Object recycleWidths, Object recycleAscents, Object recycleDescents, Object recycleFlags, Object charWidths) 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(minSdk=21, 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(Object nativePtr, Object recycle, Object recycleBreaks, Object recycleWidths, Object recycleFlags, Object recycleLength) -
nComputeLineBreaks
@HiddenApi @Implementation(minSdk=28, maxSdk=28) protected static int nComputeLineBreaks(Object nativePtr, Object text, Object measuredTextPtr, Object length, Object firstWidth, Object firstWidthLineCount, Object restWidth, Object variableTabStops, Object defaultTabStop, Object indentsOffset, Object recycle, Object recycleLength, Object recycleBreaks, Object recycleWidths, Object recycleAscents, Object recycleDescents, Object recycleFlags, Object charWidths)
-