How to remove horizontal padding from TextInputLayout?

前端 未结 1 1869
孤城傲影
孤城傲影 2021-01-20 03:43

After migrating to newest version of Material Components (1.1.0-alpha09), I\'ve noticed that TextInputLayout has some padding horizontal padding. M

1条回答
  •  -上瘾入骨i
    2021-01-20 04:43

    You can use something like:

    
    

    Then you can define (it requires the version 1.1.0) a custom style using the materialThemeOverlay attribute:

      
    
      
    
      
    

    Here the results (with a default style and the custom style):

    0 讨论(0)
提交回复
热议问题