I\'m trying to draw a rounded rectangle with a border around it using a class that extends ShapeDrawable (see here) and everything is working except that the shapedrawable seems
You can wrap you shape drawable with inset (inset_shape.xml):
Then just use the inset_shape as you need.