读取文本颜色然后进行比较,一些代码:
if (tvTitle.getCurrentTextColor() == -48060){ isAccepted = 1; }
结果,比较的是getCurrentTextColor()返回的 "-48060"。
而初始颜色是:#ff4444
是不是需要解析-48060来得到ff4444?
Integer.toHexString(-48060);