obtain

abstract fun obtain(context: Context, attrs: AttributeSet?, defStyleAttr: Int = 0, defStyleRes: Int = 0): ColorState?

Достает ColorState из атрибутов attrs.

Return

ColorState

Parameters

context

контекст

attrs

атрибуты View

defStyleAttr

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

defStyleRes

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