RadioButtonColors

表示 RadioButton 在不同状态下使用的颜色。

此接口定义了单选按钮在四种核心状态下的颜色:

  1. 选中且启用 (Selected and Enabled)

  2. 未选中且启用 (Unselected and Enabled)

  3. 选中但禁用 (Selected and Disabled)

  4. 未选中且禁用 (Unselected and Disabled)

Author

M8Test, [email protected], https://m8test.com

See also

androidx.compose.material3.RadioButtonColors

Functions

Link copied to clipboard
abstract fun setDisabledSelectedColor(colorBuilder: Color.() -> Unit)

设置当单选按钮被 选中但禁用 时的颜色。

Link copied to clipboard
abstract fun setDisabledUnselectedColor(colorBuilder: Color.() -> Unit)

设置当单选按钮 未选中且禁用 时的颜色。

Link copied to clipboard
abstract fun setSelectedColor(colorBuilder: Color.() -> Unit)

设置当单选按钮被 选中且启用 时的颜色。

Link copied to clipboard
abstract fun setUnselectedColor(colorBuilder: Color.() -> Unit)

设置当单选按钮 未选中且启用 时的颜色。