create
fun create(context: Context, attributeSet: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0): ShapeModel
Создает ShapeModel
Parameters
context
контекст
attribute Set
атрибут стиля по умолчанию
def Style Res
стиль по умолчанию
fun create(context: Context, @StyleRes shapeAppearanceResId: Int, cornerSizeBaseline: CornerSizeBaseline = CornerSizeBaseline.AUTO): ShapeModel
Создает ShapeModel согласно атрибутам стиля с идентификатором shapeAppearanceResId
Parameters
context
контекст
shape Appearance Res Id
идентификатор ресурса стиля, описывающего форму