class CustomView @JvmOverloads constructor( context: Context?, attrs: AttributeSet? = null, defStyle: Int = 0 ): View(context!!, attrs, defStyle) { //Your implementation here }
class CustomView @JvmOverloads constructor( context: Context?, attrs: AttributeSet? = null, defStyle: Int = 0 ): View(context!!, attrs, defStyle) { //Your implementation here }