Basically the same as Android
Effect diagram:
The custom View in Hongmeng needs to implement the interface, and complete the drawing of the View in the Component.DrawTask
implemented method. At the same time, it needs to call to execute the drawing of the graphics.onDraw
addDrawTask(this);
public class PieGraph extends Component implements Component.DrawTask {
private ArrayList