Oval shape clipped when created programmatically

后端 未结 5 1980
逝去的感伤
逝去的感伤 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 22:02

    You use setIntrinsicHeight, try to set it to your Height/With - strokeWidth, so in this case set Width and Height to 238.

提交回复
热议问题