java开启多线程/鸿蒙OS开启多线程/计时器案例
原创
开启动画privatevoidstart(Contextcontext,DirectionalLayoutdirectionalLayout){List<Integer>getidgetid();Imageimage1newImage(context);image1.setScaleMode(Image.ScaleMode.INSIDE);image1.setPixelMap(ResourceTable.Mediagifloading1);directionalLayout.addComponent(image1);开启串行任务context.createSerialTaskDispatcher("",TaskPriority.DEFAULT).asyncDispatch(newRunnable(){Overridepublicvoidrun(){while(tr...