Package org.robolectric.shadows
Class ShadowNativeColor
java.lang.Object
org.robolectric.shadows.ShadowNativeColor
@Implements(value=android.graphics.Color.class, minSdk=26, shadowPicker=Picker.class, isInAndroidSdk=false) public class ShadowNativeColor extends Object
Shadow for
Color
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeColor.Picker
Shadow picker forColor
. -
Constructor Summary
Constructors Constructor Description ShadowNativeColor()
-
Method Summary
Modifier and Type Method Description protected static int
nativeHSVToColor(int alpha, float[] hsv)
protected static void
nativeRGBToHSV(int red, int greed, int blue, float[] hsv)
-
Constructor Details
-
ShadowNativeColor
public ShadowNativeColor()
-
-
Method Details
-
nativeRGBToHSV
@Implementation(minSdk=26) protected static void nativeRGBToHSV(int red, int greed, int blue, float[] hsv) -
nativeHSVToColor
-