Android内置颜色及其它颜色RGB对照表

参考:http://blog.csdn.net/feiyangxiaomi/article/details/38338305


我们在平时开发时经常要用到各种颜色,有了下面这两张表,妈妈再也不用担心你的配色问题了。


一:内置颜色:

public static final int BLACK

Added in  API level 1
Constant Value:  -16777216 (0xff000000)       

public static final int BLUE

Added in  API level 1
Constant Value: -16776961 (0xff0000ff)         

public static final int CYAN

Added in  API level 1
Constant Value: -16711681 (0xff00ffff)            

public static final int DKGRAY

Added in  API level 1
Constant Value: -12303292 (0xff444444)        

public static final int GRAY

Added in  API level 1
Constant Value: -7829368 (0xff888888)        

public static final int GREEN

Added in  API level 1
Constant Value: -16711936 (0xff00ff00)       

public static final int LTGRAY

Added in  API level 1
Constant Value: -3355444 (0xffcccccc)         

public static final int MAGENTA

Added in  API level 1
Constant Value: -65281 (0xffff00ff)           

public static final int RED

Added in  API level 1
Constant Value: -65536 (0xffff0000)           

public static final int TRANSPARENT

Added in  API level 1
Constant Value: 0 (0x00000000)       透明的看不到  

public static final int WHITE

Added in  API level 1
Constant Value: -1 (0xffffffff)                 

public static final int YELLOW

Added in  API level 1
Constant Value: -256 (0xffffff00)             


二、其他颜色:

你可能感兴趣的:(android,RGB)