Remove underline from TextInputEditText

后端 未结 13 2188
我寻月下人不归
我寻月下人不归 2021-01-04 01:10

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.

<         


        
13条回答
  •  攒了一身酷
    2021-01-04 01:32

    Adding this line on TextInputLayout works for me:

    app:boxStrokeWidth="0dp"
    

    UPDATE

    Inside color res directory add et_box_color.xml file and add below lines inside of it:

    
       
    
    

    Now add Your Material Edit text like below:

    
    
                    
    
    
    

    I added a background to make a border of the TextInputLayout, remove background of TextInputLayout if you don't need. Background of TextInputEditText will be necessary to make background transparent.

提交回复
热议问题