Set Round Border of an android TextView already having a background color
Posted
by
vaibhav
on Stack Overflow
See other posts from Stack Overflow
or by vaibhav
Published on 2011-05-20T05:42:37Z
Indexed on
2012/10/01
21:38 UTC
Read the original article
Hit count: 181
I want a TextView to have a rounded border. This can be done by using a drawable, specifying a shape in the drawable, and then using the drawable as the background of the TextView. android:background="@layout/border"
Also shown here
However, my TextView already has a background color (which is gray) and thus I'm unable to use the above method to set a rounded border.
Is there any other method to do this which allows the background color of the TextView to remain gray and also surrounds it with a rounded border?
© Stack Overflow or respective owner