Code example for Animation

Methods: hasEnded

0
	public boolean hasStarted() { 
		return mAnimation != null && mAnimation.hasStarted();
	} 
 
	public boolean hasEnded() { 
		return mAnimation == null || mAnimation.hasEnded();
	} 
 
	@Override 
	public void draw(Canvas canvas) {
		if (mDrawable != null) {
			int sc = canvas.save();
			Animation anim = mAnimation;
			if (anim != null) {
				anim.getTransformation(AnimationUtils.currentAnimationTimeMillis(), mTransformation);
				canvas.concat(mTransformation.getMatrix());
			} 
			mDrawable.draw(canvas);
			canvas.restoreToCount(sc);
			if (!mAnimation.hasEnded()) {
Stop searching for code, let great code find you!  Add Codota to your java IDE