Last active
April 24, 2020 14:30
-
-
Save chenzhang2006/532e26f4dd3b88187189a7cc80edb3e1 to your computer and use it in GitHub Desktop.
Create a custom view with 3 override constructors
This file contains 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 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