How to change style of a default EditText

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

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



        
6条回答
  •  Happy的楠姐
    2020-11-27 16:46

    edittext_selector.xml

    
    
         
         
         
    
    

    edittext_default.xml

           
    
        
            
                
                
            
        
        
            
                
    
                
            
        
        
            
                
            
        
    
    

    edittext_pressed.xml

     
    
        
            
                
                
            
        
        
            
                
    
                
            
        
        
            
                
            
        
    
    
    

    edittext_disable.xml

        
        
            
                
                    
                    
                
            
            
                
                    
    
                    
                
            
            
                
                    
                
            
    
        
    

    it works fine without nine-patch Api 10+

提交回复
热议问题