Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将颜色转换为以下0xAABBCC格式String。我需要将其转换为Color,但似乎没有这样的方法,所有可用的都是返回Integer结果,这似乎与Color对象不兼容;
0xAABBCC
String
Color
Integer
HEX
利用Color.parseColor("#AABBCC");
Color.parseColor("#AABBCC");
新颜色(整数.parseInt(“AABBCC”,16));