public void addState(int[] specs,Animation animation){
  Tuple tuple=new Tuple(specs,animation);
  animation.setAnimationListener(mAnimationListener);
  mTuples.add(tuple);
}

public void addState ( int [ ] specs , Animation animation ) { Tuple tuple = new Tuple ( specs , animation ) ; animation . setAnimationListener ( mAnimationListener ) ; mTuples . add ( tuple ) ; }
associates the given animation with the provided drawable state specs so that it will be run when the view ' s drawable state matches the specs .
