Skip to content

Instantly share code, notes, and snippets.

@chenzhang2006
Last active April 24, 2020 14:30
Show Gist options
  • Save chenzhang2006/532e26f4dd3b88187189a7cc80edb3e1 to your computer and use it in GitHub Desktop.
Save chenzhang2006/532e26f4dd3b88187189a7cc80edb3e1 to your computer and use it in GitHub Desktop.
Create a custom view with 3 override constructors
class CustomTextInput : TextInputEditText {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment