blob: 2ecb8c3dd40905b2f57ca9a614313be473614e50 [file] [log] [blame]
Chet Haasefe591562010-07-27 11:15:37 -07001/*
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
17package android.animation;
18
Chet Haasefe591562010-07-27 11:15:37 -070019/**
Chet Haasea18a86b2010-09-07 13:20:00 -070020 * This adapter class provides empty implementations of the methods from {@link android.animation.Animator.AnimatorListener}.
Chet Haasefe591562010-07-27 11:15:37 -070021 * 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 Haase8aa1ffb2013-08-08 14:00:00 -070024public abstract class AnimatorListenerAdapter implements Animator.AnimatorListener,
25 Animator.AnimatorPauseListener {
Chet Haasefe591562010-07-27 11:15:37 -070026
27 /**
Joe Onorato93162322010-09-16 15:42:01 -040028 * {@inheritDoc}
Chet Haasefe591562010-07-27 11:15:37 -070029 */
30 @Override
Chet Haasea18a86b2010-09-07 13:20:00 -070031 public void onAnimationCancel(Animator animation) {
Chet Haasefe591562010-07-27 11:15:37 -070032 }
33
34 /**
Joe Onorato93162322010-09-16 15:42:01 -040035 * {@inheritDoc}
Chet Haasefe591562010-07-27 11:15:37 -070036 */
37 @Override
Chet Haasea18a86b2010-09-07 13:20:00 -070038 public void onAnimationEnd(Animator animation) {
Chet Haasefe591562010-07-27 11:15:37 -070039 }
40
41 /**
Joe Onorato93162322010-09-16 15:42:01 -040042 * {@inheritDoc}
Chet Haasefe591562010-07-27 11:15:37 -070043 */
44 @Override
Chet Haasea18a86b2010-09-07 13:20:00 -070045 public void onAnimationRepeat(Animator animation) {
Chet Haasefe591562010-07-27 11:15:37 -070046 }
47
48 /**
Joe Onorato93162322010-09-16 15:42:01 -040049 * {@inheritDoc}
Chet Haasefe591562010-07-27 11:15:37 -070050 */
51 @Override
Chet Haasea18a86b2010-09-07 13:20:00 -070052 public void onAnimationStart(Animator animation) {
Chet Haasefe591562010-07-27 11:15:37 -070053 }
54
Chet Haase8aa1ffb2013-08-08 14:00:00 -070055 /**
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 Haasefe591562010-07-27 11:15:37 -070068}