@Test public void testColor1() throws Exception { int color = WXResourceUtils.getColor("#ffffff"); assertEquals(color, 0xffffffff); color = WXResourceUtils.getColor("#99ffffff"); assertEquals(color, 0x99ffffff); color = WXResourceUtils.getColor("#aa123123"); assertEquals(color, 0xaa123123); color = WXResourceUtils.getColor("#00000000"); assertEquals(color, 0x00000000); color = WXResourceUtils.getColor("#ssssss"); assertEquals(color, Integer.MIN_VALUE); }
public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); }
WXResourceUtils { public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); } }
WXResourceUtils { public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); }  }
WXResourceUtils { public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); }  static int getColor(String color); static int getColor(String color, int defaultColor); static Shader getShader(String image, float width, float height); }
WXResourceUtils { public static int getColor(String color) { return getColor(color, Integer.MIN_VALUE); }  static int getColor(String color); static int getColor(String color, int defaultColor); static Shader getShader(String image, float width, float height);  }