draw rounded edge arc in android with embossed effect

后端 未结 4 1728
刺人心
刺人心 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:10

    For the rounded edges, you can use the Paint.setStrokeCap() method. Also, the default paint cap is BUTT. You should use the Paint.Cap.ROUND cap instead.

    For example:

    Paint mFillColor = new Paint();
    mFillColor.setStrokeCap(Paint.Cap.ROUND)
    

提交回复
热议问题