Shape drawable as background, a line at the bottom

前端 未结 7 1296
旧时难觅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:55

    This is a slightly lighter variant of the above.

    /drawable/rect_highlight.xml

    
        
    
    

    /drawable/underline.xml

    
    

    Usage:

    
    

    It's not mine, somebody smarter than I came up with it. If I was smarter, I would have asked who. :)

提交回复
热议问题