1 package com.xtremelabs.robolectric.shadows;
2 
3 import java.util.ArrayList;
4 import java.util.List;
5 
6 import android.view.animation.Animation;
7 import android.view.animation.AnimationSet;
8 
9 import com.xtremelabs.robolectric.internal.Implementation;
10 import com.xtremelabs.robolectric.internal.Implements;
11 import com.xtremelabs.robolectric.internal.RealObject;
12 
13 @Implements(AnimationSet.class)
14 public class ShadowAnimationSet extends ShadowAnimation {
15 	private ArrayList<Animation> animationList = new ArrayList<Animation>();
16 
17     @RealObject
18     private AnimationSet realAnimationSet;
19 
20 
21 	@Implementation
addAnimation(Animation anim)22     public void addAnimation(Animation anim) {
23     	animationList.add(anim);
24     }
25 
26 	@Implementation
getAnimations()27 	public List<Animation> getAnimations() {
28 		return animationList;
29 	}
30 }
31