• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.xtremelabs.robolectric.shadows;
2 
3 import android.widget.ViewFlipper;
4 import com.xtremelabs.robolectric.internal.Implementation;
5 import com.xtremelabs.robolectric.internal.Implements;
6 import com.xtremelabs.robolectric.internal.RealObject;
7 
8 @Implements(ViewFlipper.class)
9 public class ShadowViewFlipper extends ShadowViewAnimator {
10     @RealObject
11     protected ViewFlipper realObject;
12 
13     protected boolean isFlipping;
14 
15     @Implementation
startFlipping()16     public void startFlipping() {
17         this.isFlipping = true;
18     }
19 
20     @Implementation
stopFlipping()21     public void stopFlipping() {
22         this.isFlipping = false;
23     }
24 
25     @Implementation
isFlipping()26     public boolean isFlipping() {
27         return isFlipping;
28     }
29 }
30