create

fun create(context: Context, attributeSet: AttributeSet? = null, defStyleAttr: Int = 0, defStyleRes: Int = 0): ShapeModel

Создает ShapeModel

Parameters

context

контекст

attributeSet

атрибут стиля по умолчанию

defStyleRes

стиль по умолчанию


fun create(context: Context, @StyleRes shapeAppearanceResId: Int, cornerSizeBaseline: CornerSizeBaseline = CornerSizeBaseline.AUTO): ShapeModel

Создает ShapeModel согласно атрибутам стиля с идентификатором shapeAppearanceResId

Parameters

context

контекст

shapeAppearanceResId

идентификатор ресурса стиля, описывающего форму