TagStyle

标签样式枚举

定义标签的外观形状与填充方式。

Entries

Link copied to clipboard

填充样式:小圆角矩形背景,白色文字

Link copied to clipboard

边框样式:透明背景 + 1dp 彩色边框,文字颜色与边框色一致

Link copied to clipboard

圆角样式:完整圆角(胶囊形)彩色背景,白色文字

Link copied to clipboard

标记样式:右侧半圆弧形背景,白色文字,适合用作角标

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): TagStyle

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.