OutlinedBox TextInputLayout and gravity center?

后端 未结 2 863
别跟我提以往
别跟我提以往 2021-01-17 08:33

How to achieve centered new OutlinedBox style with TextInputLayout?

Current behavior:



        
2条回答
  •  借酒劲吻你
    2021-01-17 09:40

    With the Material Components Library, starting from the version 1.2.0-alpha02 the collapsed label position is determined via the edit text gravity.

    Using something like:

    
    
        
    
    
    

    The result is:

提交回复
热议问题