CircularRevealCompat

public final class CircularRevealCompat


Defines compat implementations of circular reveal animations.

Summary

Public methods

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

Returns an Animator to animate a clipping circle.

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

Returns an Animator to animate a clipping circle.

static AnimatorListener

Creates an AnimatorListener to be applied to either the Animator returned from createCircularReveal or preferably to the overall AnimatorSet.

Public methods

createCircularReveal

public static 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 createCircularReveal. In pre-L APIs, a backwards compatible version of the Animator will be returned.

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

createCircularReveal

public static 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 createCircularReveal. In pre-L APIs, a backwards compatible version of the Animator will be returned.

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

createCircularRevealListener

public static AnimatorListener createCircularRevealListener(CircularRevealWidget view)

Creates an AnimatorListener to be applied to either the Animator returned from createCircularReveal or preferably to the overall AnimatorSet.