I am using the following code to get rounded corners as well as a colored outline:
Use the tag to create a drawable in XML with rounded corners. (You can do other stuff with the shape tag like define a color gradient as well).
Following code may help you: