1package com.xtremelabs.robolectric.shadows;
2
3import android.content.Context;
4import android.view.animation.Animation;
5import android.view.animation.AnimationUtils;
6import android.view.animation.TranslateAnimation;
7
8import com.xtremelabs.robolectric.Robolectric;
9import com.xtremelabs.robolectric.internal.Implementation;
10import com.xtremelabs.robolectric.internal.Implements;
11
12@SuppressWarnings( { "UnusedDeclaration" })
13@Implements(AnimationUtils.class)
14public class ShadowAnimationUtils {
15
16	@Implementation
17	public static Animation loadAnimation(Context context, int id) {
18		Animation anim = new TranslateAnimation(0, 0, 30, 0);
19		Robolectric.shadowOf(anim).setLoadedFromResourceId(id);
20		return anim;
21	}
22}
23