create

open fun create(@NonNull context: Context, @NonNull attributes: TypedArray, @StyleableRes index: Int): StateListSizeChange

Creates a StateListSizeChange from a styleable attribute.

If the attribute refers to an xml resource, the resource is parsed and the size values are extracted from the items. If the attribute is not set or refers to a resource that cannot be resolved, null will be returned.

Return

the StateListSizeChange

Parameters

context

the context

attributes

the typed array in context

index

the index of the styleable attribute