Andrwyw home archives categories

11 Sept 2014

setProgress调用流程

setProgress - morphToProgress - animation.start


C. CircularProgressButton

调用drawIndeterminateProgress或drawProgress

CircularAnimatedDrawable.start 、 draw //无穷进度条

CircularProgressDrawable.start 、 draw //进度条

通过poregress的值确定btnState,分别调用morph函数,如morphToProgress

调用createProgressMorphing创建MorphingAnimation. MorphingAnimation.start();


C. MorphingAnimation


get

private enum State {
     PROGRESS, IDLE, COMPLETE, ERROR
}

tips