void presentAnimations(View parent,float offset,float offsetInPixel){
  int animMapSize=mAnimations.size();
  for (int i=0; i < animMapSize; i++) {
    int key=mAnimations.keyAt(i);
    ArrayList<Animation> animations=mAnimations.get(key);
    int animListSize=animations.size();
    for (int j=0; j < animListSize; j++) {
      Animation animation=animations.get(j);
      final View viewToAnimate;
      if (key == parent.getId() || key == Animation.FULL_PAGE) {
        viewToAnimate=parent;
      }
 else {
        viewToAnimate=parent.findViewById(key);
      }
      if (animation == null || viewToAnimate == null) {
        continue;
      }
      animation.animate(viewToAnimate,offset,offsetInPixel,-1);
    }
  }
}

void presentAnimations ( View parent , float offset , float offsetInPixel ) { int animMapSize = mAnimations . size ( ) ; for ( int i = 0 ; i < animMapSize ; i ++ ) { int key = mAnimations . keyAt ( i ) ; ArrayList < Animation > animations = mAnimations . get ( key ) ; int animListSize = animations . size ( ) ; for ( int j = 0 ; j < animListSize ; j ++ ) { Animation animation = animations . get ( j ) ; final View viewToAnimate ; if ( key == parent . getId ( ) || key == Animation . FULL_PAGE ) { viewToAnimate = parent ; } else { viewToAnimate = parent . findViewById ( key ) ; } if ( animation == null || viewToAnimate == null ) { continue ; } animation . animate ( viewToAnimate , offset , offsetInPixel , - 1 ) ; } } }
run the animations based on the view animations saved within the presenter and the offset of the scrolling .
