Skip to content

Commit

Permalink
Adds error enabled method
Browse files Browse the repository at this point in the history
  • Loading branch information
kojofosu committed Aug 4, 2021
1 parent 49b4864 commit 0d43056
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ class FilledBoxSpinner @JvmOverloads constructor(
binding.textInputLayout.hint = value
}

var isErrorEnabled: Boolean
get() = binding.textInputLayout.isErrorEnabled
set(value) {
binding.textInputLayout.isErrorEnabled = value
}

init {
val attributes = context.theme.obtainStyledAttributes(attributeSet, R.styleable.FilledBoxSpinner, defStyleAttr, defStyleAttr)
val hint = attributes.getString(R.styleable.FilledBoxSpinner_hint)
Expand Down

0 comments on commit 0d43056

Please sign in to comment.