Hongmeng Beginners Custom View-Pie Chart Drawing

Basically the same as Android

Effect diagram:
insert image description here
The custom View in Hongmeng needs to implement the interface, and complete the drawing of the View in the Component.DrawTaskimplemented method. At the same time, it needs to call to execute the drawing of the graphics.onDrawaddDrawTask(this);

public class PieGraph extends Component implements Component.DrawTask {
   
    
    
    private ArrayList

Guess you like

Origin blog.csdn.net/qq_41359651/article/details/120048242
Recommended