I have an android screen which takes email from the user. Below is the snippet of the code, I want to remove the underline which appears below the text.
<
Make your custom TextInputLayout like this
package com.google.android.material.textfield
import android.content.Context
import android.util.AttributeSet
class TextInputLayoutWithoutUnderline @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : TextInputLayout(context, attrs, defStyleAttr) {
override fun updateEditTextBackground() {
// XXX don't call super on purpose
}
}