Android 内置颜色

本贴最后更新于 2924 天前,其中的信息可能已经时过境迁

参考: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)

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...