Wednesday, 13 April 2016

XML : How to add a color band as text background - android

I want to add a background band to make a text look better and to underline that it's a title. The bar should go from one edge of screen to another, and if possible to leave a small gap. Here is an example: enter image description here

I've tought to create a layout for this title and to place text inside it, then set background color of this layout, or another way, to add a rectangle Shape as backgrund to allow to set also round edges.

There is other ways or better ways to do this?

No comments:

Post a Comment