Color参数必须在1f和0f之间浮动。因此,这是一种有效的颜色:
int color = toHex(new Color(1f, 1f, 1f, 1f));
是白色的。
上一篇 从文件读取双精度值
下一篇 NullPointerException:尝试从null对象引用上的字段'int android.app.Fragment.mContainerId'中读取
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号