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
-
Constructor Summary
Constructors Constructor Description ShadowStaticLayout()
-
Method Summary
Modifier and Type Method Description static 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)
-
Constructor Details
-
ShadowStaticLayout
public ShadowStaticLayout()
-
-
Method Details
-
nLineBreakOpportunities
@Implementation(minSdk=21, maxSdk=22) @HiddenApi 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
@Implementation(minSdk=28, maxSdk=28) @HiddenApi 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)
-