How to set background to edittext in android?

前端 未结 2 1750
清歌不尽
清歌不尽 2020-12-18 15:28

I am using custom drawable to set background of edit text.Following is the code for edit text background


         


        
2条回答
  •  伪装坚强ぢ
    2020-12-18 16:11

    I found a solution for these:

    text.xml:

    
    
    
    
        
            
                           
            
        
    
       
        
            
                   
            
        
    
        
            
                           
            
         
    
    

    main.xml:

    
    
    
    
    
    
    
    
    

    Expected Output:

    enter image description here

    Without using external images we can get a output with the help of drawable text.xml

提交回复
热议问题