Package org.robolectric.shadows
Class ShadowNativeLinearGradient
java.lang.Object
org.robolectric.shadows.ShadowNativeLinearGradient
@Implements(value=android.graphics.LinearGradient.class, minSdk=26, shadowPicker=Picker.class) public class ShadowNativeLinearGradient extends Object
Shadow for
LinearGradient
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeLinearGradient.Picker
Shadow picker forLinearGradient
. -
Constructor Summary
Constructors Constructor Description ShadowNativeLinearGradient()
-
Method Summary
Modifier and Type Method Description protected long
nativeCreate(long matrix, float x0, float y0, float x1, float y1, long[] colors, float[] positions, int tileMode, long colorSpaceHandle)
protected long
nativeCreate1(long matrix, float x0, float y0, float x1, float y1, int[] colors, float[] positions, int tileMode)
protected long
nativeCreate2(long matrix, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode)
-
Constructor Details
-
ShadowNativeLinearGradient
public ShadowNativeLinearGradient()
-
-
Method Details
-
nativeCreate
@Implementation(minSdk=29) protected long nativeCreate(long matrix, float x0, float y0, float x1, float y1, long[] colors, float[] positions, int tileMode, long colorSpaceHandle) -
nativeCreate1
@Implementation(minSdk=26, maxSdk=28) protected long nativeCreate1(long matrix, float x0, float y0, float x1, float y1, int[] colors, float[] positions, int tileMode) -
nativeCreate2
@Implementation(minSdk=26, maxSdk=28) protected long nativeCreate2(long matrix, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode)
-