fromString

abstract fun fromString(value: String)

从一个字符串表示形式解析并设置颜色。 支持的格式为 "#RRGGBB" 和 "#AARRGGBB"。

Parameters

value

包含颜色信息的字符串。