Oval shape clipped when created programmatically

后端 未结 5 1976
逝去的感伤
逝去的感伤 2020-12-31 21:16

I\'ve got a clipping problem.

First, I tried to display an oval shape with Xml only. I had the following code:

res/drawable/circle.xml



        
5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-31 21:52

    you should remove this:

     drawable.getPaint().setStrokeWidth(dpToPx(2));
    

提交回复
热议问题