Skip to content

Instantly share code, notes, and snippets.

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