android 解析服务端下发的颜色值

android 解析服务端下发的,颜色值 可以使用 Color.parseColor(myPassedColor))

 

in android, myPassedColor being the hex value like #000 or #000000 or #00000000

 

Parse the color string, and return the corresponding color-int. If the string cannot be parsed, throws an IllegalArgumentException exception. Supported formats are: #RRGGBB #AARRGGBB 'red', 'blue', 'green', 'black', 'white', 'gray', 'cyan', 'magenta', 'yellow', 'lightgray', 'darkgray' 

 

猜你喜欢

转载自gybin.iteye.com/blog/1887041
0条评论
添加一条新回复