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:
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