MaterialComponents.TextInputLayout.OutlinedBox it doesn't work properly boxBackgroundColor

前端 未结 2 1667
花落未央
花落未央 2020-11-30 14:20

I use material. I\'m going to use a color for TextInputLayout for the backdrop, but something like the one below! hint background not change.i used style and wanted to make

2条回答
  •  情歌与酒
    2020-11-30 15:05

    You may use custom edit text with border, so you can easily set your desired background. For example try this code: activity_main.xml

    
    
    
        
    
            
    
            
        
    
        
    
    

    boarder.xml

    
    
    
        
    
        
    
    

    Also see here: Custom edit text with borders

提交回复
热议问题