How to draw circle with partitioned in android?

后端 未结 3 1026
温柔的废话
温柔的废话 2021-02-01 23:24

I want to draw this type of circle in my application. I am able to draw circle using Canvas but I can\'t get any idea about how to make partitioned?

Can anyone suggest m

3条回答
  •  执念已碎
    2021-02-02 00:04

    I have an idea first draw inside circle with partition using

            can.drawArc(oval, startAngle, sweepAngle, useCenter, paint)
    

    Take angle value like 0 t0 60, and then again draw another arc with same center take angle value from 60 to 120 and so on.Every time set different color in Paint.After completion of inside circle, almost all work done.Now draw white circle with same center but small radius after first circle.So it will create over first

    Hope it will help you :)

提交回复
热议问题