Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 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 | |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 19 | /** |
Chet Haase | a18a86b | 2010-09-07 13:20:00 -0700 | [diff] [blame] | 20 | * This adapter class provides empty implementations of the methods from {@link android.animation.Animator.AnimatorListener}. |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 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 | */ |
Chet Haase | 8aa1ffb | 2013-08-08 14:00:00 -0700 | [diff] [blame] | 24 | public abstract class AnimatorListenerAdapter implements Animator.AnimatorListener, |
| 25 | Animator.AnimatorPauseListener { |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 26 | |
| 27 | /** |
Joe Onorato | 9316232 | 2010-09-16 15:42:01 -0400 | [diff] [blame] | 28 | * {@inheritDoc} |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 29 | */ |
| 30 | @Override |
Chet Haase | a18a86b | 2010-09-07 13:20:00 -0700 | [diff] [blame] | 31 | public void onAnimationCancel(Animator animation) { |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | /** |
Joe Onorato | 9316232 | 2010-09-16 15:42:01 -0400 | [diff] [blame] | 35 | * {@inheritDoc} |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 36 | */ |
| 37 | @Override |
Chet Haase | a18a86b | 2010-09-07 13:20:00 -0700 | [diff] [blame] | 38 | public void onAnimationEnd(Animator animation) { |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | /** |
Joe Onorato | 9316232 | 2010-09-16 15:42:01 -0400 | [diff] [blame] | 42 | * {@inheritDoc} |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 43 | */ |
| 44 | @Override |
Chet Haase | a18a86b | 2010-09-07 13:20:00 -0700 | [diff] [blame] | 45 | public void onAnimationRepeat(Animator animation) { |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | /** |
Joe Onorato | 9316232 | 2010-09-16 15:42:01 -0400 | [diff] [blame] | 49 | * {@inheritDoc} |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 50 | */ |
| 51 | @Override |
Chet Haase | a18a86b | 2010-09-07 13:20:00 -0700 | [diff] [blame] | 52 | public void onAnimationStart(Animator animation) { |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 53 | } |
| 54 | |
Chet Haase | 8aa1ffb | 2013-08-08 14:00:00 -0700 | [diff] [blame] | 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 | } |
Chet Haase | fe59156 | 2010-07-27 11:15:37 -0700 | [diff] [blame] | 68 | } |