@Test public void testColor2() throws Exception { int color = WXResourceUtils.getColor("#123"); assertEquals(color, 0xff112233); color = WXResourceUtils.getColor("#abc"); assertEquals(color, 0xffaabbcc); color = WXResourceUtils.getColor("#12332"); assertEquals(color, Integer.MIN_VALUE); color = WXResourceUtils.getColor("#sss"); 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);  }