Home | History | Annotate | Download | only in animation
      1 /*
      2  * Copyright (C) 2010 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package android.animation;
     18 
     19 /**
     20  * This adapter class provides empty implementations of the methods from {@link android.animation.Animator.AnimatorListener}.
     21  * Any custom listener that cares only about a subset of the methods of this listener can
     22  * simply subclass this adapter class instead of implementing the interface directly.
     23  */
     24 public abstract class AnimatorListenerAdapter implements Animator.AnimatorListener,
     25         Animator.AnimatorPauseListener {
     26 
     27     /**
     28      * {@inheritDoc}
     29      */
     30     @Override
     31     public void onAnimationCancel(Animator animation) {
     32     }
     33 
     34     /**
     35      * {@inheritDoc}
     36      */
     37     @Override
     38     public void onAnimationEnd(Animator animation) {
     39     }
     40 
     41     /**
     42      * {@inheritDoc}
     43      */
     44     @Override
     45     public void onAnimationRepeat(Animator animation) {
     46     }
     47 
     48     /**
     49      * {@inheritDoc}
     50      */
     51     @Override
     52     public void onAnimationStart(Animator animation) {
     53     }
     54 
     55     /**
     56      * {@inheritDoc}
     57      */
     58     @Override
     59     public void onAnimationPause(Animator animation) {
     60     }
     61 
     62     /**
     63      * {@inheritDoc}
     64      */
     65     @Override
     66     public void onAnimationResume(Animator animation) {
     67     }
     68 }
     69