How to change style of a default EditText

后端 未结 6 1725
余生分开走
余生分开走 2020-11-27 16:16

I am creating three EditTexts in my xml file using code like this:



        
6条回答
  •  有刺的猬
    2020-11-27 16:56

    Create xml file like edit_text_design.xml and save it to your drawable folder

    i have given the Color codes According to my Choice, Please Change Color Codes As per your Choice !

     
      
    
    
        
            
        
    
    
    
    
        
            
        
    
    
    
    
        
            
        
    
    
    
    

    your Edit Text Should contain it as Background :

    add android:background="@drawable/edit_text_design" to all of your EditText's

    and your above EditText should now look like this:

          
    

提交回复
热议问题