fromPercent

abstract fun fromPercent(percent: Int): CornerSize

创建一个基于百分比的 CornerSize

圆角尺寸将根据形状的最小边(宽度或高度中较小者)的百分比来计算。

Return

代表指定百分比的 CornerSize 实例。

Parameters

percent

圆角尺寸的百分比,取值范围为 0 到 100。