public void addState ( int [ ] specs , Animator animation , Animator . AnimatorListener listener ) { Tuple tuple = new Tuple ( specs , animation , listener ) ; animation . addListener ( 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 .