Skip to content

Instantly share code, notes, and snippets.

@pantos27
Created July 9, 2019 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pantos27/635d7b1b0ddb56ea0680843087e03a41 to your computer and use it in GitHub Desktop.
Save pantos27/635d7b1b0ddb56ea0680843087e03a41 to your computer and use it in GitHub Desktop.
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{
//init stuff
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment