public void recreateWithParams(Context context, @ColorInt int spinnerColor, int duration, boolean clockwise) {
boolean wasRunning = false;
boolean oneShot = isOneShot();
if (((AnimationDrawable)this.getBackground()).isRunning()) {
wasRunning = true;
stop();
}
AnimationDrawable newSpinner = createSpinner(context, spinnerColor, duration, clockwise);
if (newSpinner != null) {
if (oneShot) newSpinner.setOneShot(true);
this.spinnerColor = spinnerColor;
this.duration = duration;
this.clockwise = clockwise;
updateSpinner(newSpinner);
}
if (wasRunning) start();
}
CamomileSpinner.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:IOSDialog
作者:
评论列表
文章目录