If you are using the material components TextInputLayout
, setting the background color to something else doesn't remove the underline, the solution is to set the BoxBackgroundMode
like this (kotlin):
myTextInputLayout.boxBackgroundMode = TextInputLayout.BOX_BACKGROUND_NONE
or in xml:
app:boxBackgroundMode="none"
I think that this change on the component was made to make the underline 'work' with a custom background color