Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

CircularRevealCompat

public final class CircularRevealCompat
extends Object

java.lang.Object
   ↳ com.google.android.material.circularreveal.CircularRevealCompat


Defines compat implementations of circular reveal animations.

Summary

Public methods

static Animator createCircularReveal(CircularRevealWidget view, float centerX, float centerY, float startRadius, float endRadius)

Returns an Animator to animate a clipping circle.

static Animator createCircularReveal(CircularRevealWidget view, float centerX, float centerY, float endRadius)

Returns an Animator to animate a clipping circle.

static AnimatorListener createCircularRevealListener(CircularRevealWidget view)

Creates an AnimatorListener to be applied to either the Animator returned from createCircularReveal(CircularRevealWidget, float, float, float) or preferably to the overall AnimatorSet.

Inherited methods

From class java.lang.Object

Public methods

createCircularReveal

Animator createCircularReveal (CircularRevealWidget view, 
                float centerX, 
                float centerY, 
                float startRadius, 
                float endRadius)

Returns an Animator to animate a clipping circle.

This is meant to be used as a drop-in replacement for ERROR(/ViewAnimationUtils#createCircularReveal(View, int, int, float, float)). In pre-L APIs, a backwards compatible version of the Animator will be returned.

You must also call createCircularRevealListener(CircularRevealWidget) and add the returned AnimatorListener to this Animator or preferably to the overall AnimatorSet.

Parameters
view CircularRevealWidget

centerX float

centerY float

startRadius float

endRadius float

Returns
Animator

createCircularReveal

Animator createCircularReveal (CircularRevealWidget view, 
                float centerX, 
                float centerY, 
                float endRadius)

Returns an Animator to animate a clipping circle. The startRadius will be the current getRevealInfo()'s radius at the start of the animation.

This is meant to be used as a drop-in replacement for ERROR(/ViewAnimationUtils#createCircularReveal(View, int, int, float, float)). In pre-L APIs, a backwards compatible version of the Animator will be returned.

You must also call createCircularRevealListener(CircularRevealWidget) and add the returned AnimatorListener to this Animator or preferably to the overall AnimatorSet.

Parameters
view CircularRevealWidget

centerX float

centerY float

endRadius float

Returns
Animator

createCircularRevealListener

AnimatorListener createCircularRevealListener (CircularRevealWidget view)

Creates an AnimatorListener to be applied to either the Animator returned from createCircularReveal(CircularRevealWidget, float, float, float) or preferably to the overall AnimatorSet.

Parameters
view CircularRevealWidget

Returns
AnimatorListener