1 Star 0 Fork 3

seashell / ohos-Spinkit

forked from HarmonyOS-TPC / ohos-Spinkit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README_zh-CN.md 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
yxf 提交于 2021-04-20 15:18 . modify README.md

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 RotatingPlane
DoubleBounce DoubleBounce
Wave Wave
WanderingCubes WanderingCubes
Pulse Pulse
ChasingDots ChasingDots
ThreeBounce ThreeBounce
Circle Circle
CubeGrid CubeGrid
FadingCircle FadingCircle

RotatingCircle | RotatingCircle

##感谢

1
https://gitee.com/luquick/ohos-Spinkit.git
git@gitee.com:luquick/ohos-Spinkit.git
luquick
ohos-Spinkit
ohos-Spinkit
master

搜索帮助