Shape drawable as background, a line at the bottom

前端 未结 7 1320
旧时难觅i
旧时难觅i 2020-12-07 11:58

I am using a drawable as a background of a TextView just to have a divider line below the text. A achivied it with this drawable-xml:



        
7条回答
  •  天涯浪人
    2020-12-07 12:41

    With this solution where ever you require different line you can. My requirement was underline only. Even you can give different colors to the layout. You can see in below picture, white line

        
        
    
        
            
                
                
            
        
    
        
            
                
                
            
        
    
        
            
                
                
            
        
    
        
            
                
                
            
        
    
        
            
                
    
                
            
        
    
    

提交回复
热议问题