public class

ViewPropertyAnimatorListenerAdapter

extends java.lang.Object

implements ViewPropertyAnimatorListener

 java.lang.Object

↳androidx.core.view.ViewPropertyAnimatorListenerAdapter

Gradle dependencies

compile group: 'androidx.core', name: 'core', version: '1.15.0-alpha02'

  • groupId: androidx.core
  • artifactId: core
  • version: 1.15.0-alpha02

Artifact androidx.core:core:1.15.0-alpha02 it located at Google repository (https://maven.google.com/)

Androidx artifact mapping:

androidx.core:core com.android.support:support-compat

Androidx class mapping:

androidx.core.view.ViewPropertyAnimatorListenerAdapter android.support.v4.view.ViewPropertyAnimatorListenerAdapter

Overview

This adapter class provides empty implementations of the methods from ViewPropertyAnimatorListener. Any custom listener that cares only about a subset of the methods of this listener can simply subclass this adapter class instead of implementing the interface directly.

Summary

Constructors
publicViewPropertyAnimatorListenerAdapter()

Methods
public voidonAnimationCancel(View view)

public voidonAnimationEnd(View view)

public voidonAnimationStart(View view)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public ViewPropertyAnimatorListenerAdapter()

Methods

public void onAnimationStart(View view)

public void onAnimationEnd(View view)

public void onAnimationCancel(View view)

Parameters:

view:

Source

/*
 * Copyright 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package androidx.core.view;

import android.view.View;

import androidx.annotation.NonNull;

/**
 * This adapter class provides empty implementations of the methods from
 * {@link ViewPropertyAnimatorListener}. Any custom listener that cares only about a subset of
 * the methods of this listener can simply subclass this adapter class instead of implementing
 * the interface directly.
 */
public class ViewPropertyAnimatorListenerAdapter implements ViewPropertyAnimatorListener {

    /**
     * {@inheritDoc}
     */
    @Override
    public void onAnimationStart(@NonNull View view) {
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void onAnimationEnd(@NonNull View view) {
    }

    /**
     * {@inheritDoc}
     * @param view
     */
    @Override
    public void onAnimationCancel(@NonNull View view) {
    }
}