draw rounded edge arc in android with embossed effect

后端 未结 4 1725
刺人心
刺人心 2021-01-30 05:53

I am trying to develop a custom component i.e. arc slider, I am done with the arc and the thumb but not able to figure out how can I draw the rounded edge arc and also the embos

4条回答
  •  礼貌的吻别
    2021-01-30 06:00

    Use the Paint.setStrokeCap() method. You need Paint.Cap.ROUND. The default one is Paint.Cap.BUTT. There is a similar Path property that is called path join. It determines how to draw the parts of the path where it's constituent segments join. To set it use Path.setPathJoin(). You might need it in the future. Good luck.

提交回复
热议问题