public void addAnimation(int id,Animation... animations){
  if (mAnimations.get(id) == null) {
    mAnimations.put(id,new ArrayList<Animation>(animations.length));
    if (id != Animation.FULL_PAGE) {
      mAnimatedViews.add(id);
    }
  }
  ArrayList<Animation> anims=mAnimations.get(id);
  Collections.addAll(anims,animations);
}

public void addAnimation ( int id , Animation ... animations ) { if ( mAnimations . get ( id ) == null ) { mAnimations . put ( id , new ArrayList < Animation > ( animations . length ) ) ; if ( id != Animation . FULL_PAGE ) { mAnimatedViews . add ( id ) ; } } ArrayList < Animation > anims = mAnimations . get ( id ) ; Collections . addAll ( anims , animations ) ; }
add animations to the target view . the view ' s id is used as key .
