Skip to content

Instantly share code, notes, and snippets.

@chenzhang2006
Created April 24, 2020 14:33
Show Gist options
  • Save chenzhang2006/a22ba24e35de93add65b025b2c9b2a15 to your computer and use it in GitHub Desktop.
Save chenzhang2006/a22ba24e35de93add65b025b2c9b2a15 to your computer and use it in GitHub Desktop.
create custom view with @jvmoverloads and 3 arguments
class CustomTextInput @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : TextInputEditText(context, attrs, defStyleAttr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment