onInit

abstract fun onInit(context: Context, attrs: AttributeSet? = null, styleAttr: Int? = null)

Callable in view constructors to perform view inflation and attribute initialization

Parameters

context

view context

attrs

view attributes if applicable

styleAttr

style attribute if applicable