【发布时间】:2012-01-19 08:55:57
【问题描述】:
如何将整数 ex: 13369395 中的颜色代码转换为特定于 android 的颜色代码。由于 13369395 也是我尝试做的整数
mainLayout.setTextColor(13369395);
但它不起作用。
我还尝试将 13369395 转换为十六进制,例如:
mainLayout.setBackgroundColor(Integer.parseInt(13369395 +"", 16)+0xFF000000);
但它也没有帮助。
【问题讨论】:
标签: android-layout colors views setbackground