回复
鸿蒙开源组件——加载动画
jacksky
发布于 2022-1-10 17:23
浏览
0收藏
ohos-SpinKit
openharmony 加载动画(SpinKitohos)
效果
Gradle 依赖
dependencies {
implementation 'io.openharmony.tpc.thirdlib:ohos-SpinKit:1.0.1'
}
使用
- ProgressBar
DoubleBounce doubleBounce = new DoubleBounce(); doubleBounce.setPaintColor(0XFF1AAF5D); doubleBounce.onBoundsChange(0, 0, progressBar.getWidth(), progressBar.getHeight()); doubleBounce.setComponent(progressBar); progressBar.setProgressElement(doubleBounce); progressBar.setIndeterminate(true); progressBar.addDrawTask((component, canvas) -> doubleBounce.drawToCanvas(canvas));
-
###样式:
样式 预览 RotatingPlane DoubleBounce Wave WanderingCubes Pulse ChasingDots ThreeBounce Circle CubeGrid FadingCircle RotatingCircle | ##感谢
ohos-Spinkit-master.zip 5.67M 46次下载
已于2022-1-10 17:23:23修改
赞
收藏
回复
相关推荐