Code example for ArrayList

Methods: remove, size

0
   */ 
  public void removeListener(AnimatorListener listener){
    if(mListeners == null){
      return; 
    } 
    mListeners.remove(listener);
    if(mListeners.size() == 0){
      mListeners = null;
    } 
  } 
 
  /** 
   * Gets the set of {@link android.animation.Animator.AnimatorListener} objects that are currently 
   * listening for events on this <code>Animator</code> object. 
   * 
   * @return ArrayList<AnimatorListener> The set of listeners. 
   */ 
  public ArrayList<AnimatorListener> getListeners(){
    return mListeners;
  }