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 forLinearGradientthat is backed by native code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowNativeLinearGradient.PickerShadow picker forLinearGradient.
-
Constructor Summary
Constructors Constructor Description ShadowNativeLinearGradient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longnativeCreate(long matrix, float x0, float y0, float x1, float y1, long[] colors, float[] positions, int tileMode, long colorSpaceHandle)protected longnativeCreate1(long matrix, float x0, float y0, float x1, float y1, int[] colors, float[] positions, int tileMode)protected longnativeCreate2(long matrix, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode)
-
-
-
Method Detail
-
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)
-
-