Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Android custom view in Kotlin with all the constructor overloads
package com.pantos27.gist
class KotlinView @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : View(context, attrs, defStyleAttr){
//init stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment