Basic way for init custom View in Kotlin.
Obviously.. can extend any view class.
in this time, we extended “View”.
class CustomView(context: Context, attrs: AttributeSet): View(context, attrs) {
init {
}
}
Obviously.. can extend any view class.
in this time, we extended “View”.
class CustomView(context: Context, attrs: AttributeSet): View(context, attrs) {
init {
}
}