Created
March 3, 2018 10:37
-
-
Save sebaslogen/74aa31c58b2a680eaa3057382378bf8e to your computer and use it in GitHub Desktop.
Kotlin Android CustomView with default parameters
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
class MyCustomView @JvmOverloads constructor( | |
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 | |
) : View(context, attrs, defStyleAttr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment