You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using TextInputLayout with boxBackgroundMode="outline", the boxBackgroundColor does not respond to ColorStateList changes. This makes it impossible to change the background color dynamically on focus, unlike filled mode which works as expected.
Steps to Reproduce
Create a selector color resource with state_focused and default.
Set it to app:boxBackgroundColor in XML.
Use boxBackgroundMode="outline".
Expected Behavior
The background color of the outlined box should change when focused.
Actual Behavior
Only the default color is applied. Focused state is ignored.
Environment
Material Components version: [your version]
Android version: [your device/emulator]
Theme: Material3 / Material2
Additional Notes
This behavior is inconsistent with filled mode and limits UI flexibility. Please consider adding support for ColorStateList in outline mode.