Created
July 9, 2019 19:26
-
-
Save pantos27/635d7b1b0ddb56ea0680843087e03a41 to your computer and use it in GitHub Desktop.
Android custom view in Kotlin with all the constructor overloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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