Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.content.Context;
      4 import android.view.animation.Animation;
      5 import android.view.animation.AnimationUtils;
      6 import android.view.animation.TranslateAnimation;
      7 
      8 import com.xtremelabs.robolectric.Robolectric;
      9 import com.xtremelabs.robolectric.internal.Implementation;
     10 import com.xtremelabs.robolectric.internal.Implements;
     11 
     12 @SuppressWarnings( { "UnusedDeclaration" })
     13 @Implements(AnimationUtils.class)
     14 public 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