22
33import android .os .Handler ;
44import android .support .v4 .widget .DrawerLayout ;
5- import android .support .v7 .app .ActionBarActivity ;
65import android .view .View ;
76import android .view .animation .AccelerateInterpolator ;
87import android .view .animation .Animation ;
@@ -23,32 +22,29 @@ public class ViewAnimator<T extends Resourceble> {
2322 private final int ANIMATION_DURATION = 175 ;
2423 public static final int CIRCULAR_REVEAL_ANIMATION_DURATION = 500 ;
2524
26- private ActionBarActivity actionBarActivity ;
25+ private Activity activity ;
2726 private List <T > list ;
2827
2928 private List <View > viewList = new ArrayList <>();
3029 private ScreenShotable screenShotable ;
3130 private DrawerLayout drawerLayout ;
3231 private ViewAnimatorListener animatorListener ;
3332
34- public ViewAnimator (ActionBarActivity activity ,
35- List <T > items ,
36- ScreenShotable screenShotable ,
37- final DrawerLayout drawerLayout ,
38- ViewAnimatorListener animatorListener ) {
39- this .actionBarActivity = activity ;
33+ public ViewAnimator (Activity activity , List <T > items ,ScreenShotable screenShotable , final DrawerLayout drawerLayout , ViewAnimatorListener animatorListener ){
34+ this .activity = activity ;
4035 this .list = items ;
4136 this .screenShotable = screenShotable ;
4237 this .drawerLayout = drawerLayout ;
4338 this .animatorListener = animatorListener ;
4439 }
4540
41+
4642 public void showMenuContent () {
4743 setViewsClickable (false );
4844 viewList .clear ();
4945 double size = list .size ();
5046 for (int i = 0 ; i < size ; i ++) {
51- View viewMenu = actionBarActivity .getLayoutInflater ().inflate (R .layout .menu_list_item , null );
47+ View viewMenu = activity .getLayoutInflater ().inflate (R .layout .menu_list_item , null );
5248 final int finalI = i ;
5349 viewMenu .setOnClickListener (new View .OnClickListener () {
5450 @ Override
0 commit comments