Back to project page image-loader.
The source code is released under:
Apache License
If you think the Android project image-loader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.novoda.imageloader.core.util; /*from w w w . j a v a 2s . c om*/ import android.content.Context; import android.view.animation.Animation; import android.view.animation.AnimationSet; import android.view.animation.AnimationUtils; public class AnimationHelper { public static final int ANIMATION_DISABLED = -1; private final Context context; public AnimationHelper(Context context) { this.context = context.getApplicationContext(); } public Animation loadAnimation(int animationRes) { return animationRes == ANIMATION_DISABLED ? new AnimationSet(false) : AnimationUtils.loadAnimation(context, animationRes); } }