TextInputLayout passwordToggle with rounded corners

后端 未结 4 665
别那么骄傲
别那么骄傲 2021-02-08 12:04

I\'m using TextInputLayout from android design library version 25.1.1. With the following code:



        
4条回答
  •  野的像风
    2021-02-08 12:41

    Just use the Material Components library and the standard TextInputLayout component.

    Add the app:boxCornerRadiusBottomEnd="xxdp", app:boxCornerRadiusTopEnd="xxdp", app:boxCornerRadiusBottomStart="xxdp", app:boxCornerRadiusTopStart="xxdp" attributes.

    Something like:

        
    

    Otherwise you can define a custom style and use the shapeAppearanceOverlay attribute:

        
    

    with:

      
    
      
    

提交回复
热议问题