Properly apply colors to end icons in text input layout

This commit is contained in:
Ensar Sarajčić 2023-07-15 17:12:20 +02:00
parent f5b7b3b48a
commit e2b71819d0

View file

@ -43,6 +43,7 @@ class MyTextInputLayout : TextInputLayout {
)
)
setEndIconTintList(ColorStateList(arrayOf(intArrayOf(0)), intArrayOf(hintColor)))
setBoxStrokeColorStateList(boxColorState)
defaultTextColor.set(this, ColorStateList(arrayOf(intArrayOf(0)), intArrayOf(defaultHintTextColor)))
setHelperTextColor(ColorStateList.valueOf(textColor))