How to remove white box from TextInputLayout

后端 未结 4 582
感情败类
感情败类 2021-01-02 01:21

Today I have just updated my dependencies of material design

from 1.0.0 to 1.1.0-alpha09

implementa         


        
4条回答
  •  鱼传尺愫
    2021-01-02 01:54

    For me using @style/Widget.Design.TextInputLayout produced undesirable formatting results, specifically alignment issues with the editText box.

    I used boxBackgroundMode set to none for awhile, and after updating material design in my project the error icon mentioned started showing. May be a bug (https://issuetracker.google.com/issues/122445449).

    For now I'm still setting the boxBackgroundMode to none, and hiding the error icon by setting the color to transparent. This way I keep the material design.

    app:boxBackgroundMode="none"
    app:errorIconTint="@android:color/transparent"
    
    
    
    
    
            
        
    

提交回复
热议问题