Offset shape within a ShapeDrawable

后端 未结 2 2120
独厮守ぢ
独厮守ぢ 2021-02-14 05:55

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

2条回答
  •  名媛妹妹
    2021-02-14 06:45

    You can wrap you shape drawable with inset (inset_shape.xml):

        
    

    Then just use the inset_shape as you need.

提交回复
热议问题