149c78900da0d43140fb602431fb93212bd7f6c70Chris Banes/* 249c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * Copyright (C) 2014 The Android Open Source Project 349c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * 449c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * Licensed under the Apache License, Version 2.0 (the "License"); 549c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * you may not use this file except in compliance with the License. 649c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * You may obtain a copy of the License at 749c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * 849c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * http://www.apache.org/licenses/LICENSE-2.0 949c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * 1049c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * Unless required by applicable law or agreed to in writing, software 1149c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * distributed under the License is distributed on an "AS IS" BASIS, 1249c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1349c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * See the License for the specific language governing permissions and 1449c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * limitations under the License. 1549c78900da0d43140fb602431fb93212bd7f6c70Chris Banes */ 1649c78900da0d43140fb602431fb93212bd7f6c70Chris Banes 1749c78900da0d43140fb602431fb93212bd7f6c70Chris Banespackage android.support.v4.view; 1849c78900da0d43140fb602431fb93212bd7f6c70Chris Banes 1949c78900da0d43140fb602431fb93212bd7f6c70Chris Banesimport android.view.View; 2049c78900da0d43140fb602431fb93212bd7f6c70Chris Banes 2149c78900da0d43140fb602431fb93212bd7f6c70Chris Banes/** 2249c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * This adapter class provides empty implementations of the methods from 2349c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * {@link ViewPropertyAnimatorListener}. Any custom listener that cares only about a subset of 2449c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * the methods of this listener can simply subclass this adapter class instead of implementing 2549c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * the interface directly. 2649c78900da0d43140fb602431fb93212bd7f6c70Chris Banes */ 2749c78900da0d43140fb602431fb93212bd7f6c70Chris Banespublic class ViewPropertyAnimatorListenerAdapter implements ViewPropertyAnimatorListener { 2849c78900da0d43140fb602431fb93212bd7f6c70Chris Banes 2949c78900da0d43140fb602431fb93212bd7f6c70Chris Banes /** 3049c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * {@inheritDoc} 3149c78900da0d43140fb602431fb93212bd7f6c70Chris Banes */ 3249c78900da0d43140fb602431fb93212bd7f6c70Chris Banes @Override 3349c78900da0d43140fb602431fb93212bd7f6c70Chris Banes public void onAnimationStart(View view) { 3449c78900da0d43140fb602431fb93212bd7f6c70Chris Banes } 3549c78900da0d43140fb602431fb93212bd7f6c70Chris Banes 3649c78900da0d43140fb602431fb93212bd7f6c70Chris Banes /** 3749c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * {@inheritDoc} 3849c78900da0d43140fb602431fb93212bd7f6c70Chris Banes */ 3949c78900da0d43140fb602431fb93212bd7f6c70Chris Banes @Override 4049c78900da0d43140fb602431fb93212bd7f6c70Chris Banes public void onAnimationEnd(View view) { 4149c78900da0d43140fb602431fb93212bd7f6c70Chris Banes } 4249c78900da0d43140fb602431fb93212bd7f6c70Chris Banes 4349c78900da0d43140fb602431fb93212bd7f6c70Chris Banes /** 4449c78900da0d43140fb602431fb93212bd7f6c70Chris Banes * {@inheritDoc} 4549c78900da0d43140fb602431fb93212bd7f6c70Chris Banes */ 4649c78900da0d43140fb602431fb93212bd7f6c70Chris Banes @Override 4749c78900da0d43140fb602431fb93212bd7f6c70Chris Banes public void onAnimationCancel(View view) { 4849c78900da0d43140fb602431fb93212bd7f6c70Chris Banes } 4949c78900da0d43140fb602431fb93212bd7f6c70Chris Banes} 50