Skip to content

Instantly share code, notes, and snippets.

@sebaslogen
Created March 3, 2018 10:34
Show Gist options
  • Save sebaslogen/0b6689c54ee70af84faf82a4abe3825f to your computer and use it in GitHub Desktop.
Save sebaslogen/0b6689c54ee70af84faf82a4abe3825f to your computer and use it in GitHub Desktop.
Kotlin Android CustomView without default parameters
class MyCustomView : View {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
constructor(context: Context, attrs: AttributeSet?, attributeSetId: Int) : super(context, attrs, attributeSetId)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment