1 /* 2 * Copyright (C) 2016 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.transition; 18 19 /** 20 * This adapter class provides empty implementations of the methods from {@link 21 * android.transition.Transition.TransitionListener}. 22 * Any custom listener that cares only about a subset of the methods of this listener can 23 * simply subclass this adapter class instead of implementing the interface directly. 24 */ 25 public abstract class TransitionListenerAdapter implements Transition.TransitionListener { 26 27 /** 28 * {@inheritDoc} 29 */ 30 @Override onTransitionStart(Transition transition)31 public void onTransitionStart(Transition transition) { 32 } 33 34 /** 35 * {@inheritDoc} 36 */ 37 @Override onTransitionEnd(Transition transition)38 public void onTransitionEnd(Transition transition) { 39 } 40 41 /** 42 * {@inheritDoc} 43 */ 44 @Override onTransitionCancel(Transition transition)45 public void onTransitionCancel(Transition transition) { 46 } 47 48 /** 49 * {@inheritDoc} 50 */ 51 @Override onTransitionPause(Transition transition)52 public void onTransitionPause(Transition transition) { 53 } 54 55 /** 56 * {@inheritDoc} 57 */ 58 @Override onTransitionResume(Transition transition)59 public void onTransitionResume(Transition transition) { 60 } 61 } 62