Skip to content

Instantly share code, notes, and snippets.

@Ash-Kay
Last active May 11, 2020 06:13
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 Ash-Kay/a8152d11753c11b8a65429a82c2dd660 to your computer and use it in GitHub Desktop.
Save Ash-Kay/a8152d11753c11b8a65429a82c2dd660 to your computer and use it in GitHub Desktop.
class KotlinView : View {
constructor(context: Context) : this(context, null)
constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
}
override fun onDraw(canvas: Canvas?) {
//Draw things here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment