public final class ViewAnimationUtils
extends java.lang.Object
| Constructor and Description |
|---|
ViewAnimationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static android.animation.Animator |
createCircularReveal(android.view.View view,
int centerX,
int centerY,
float startRadius,
float endRadius)
Returns an Animator which can animate a clipping circle.
|
static android.animation.Animator |
createCircularReveal(android.view.View view,
int centerX,
int centerY,
float startRadius,
float endRadius,
int layerType)
Returns an Animator which can animate a clipping circle.
|
public static android.animation.Animator createCircularReveal(android.view.View view,
int centerX,
int centerY,
float startRadius,
float endRadius)
Any shadow cast by the View will respect the circular clip from this animator.
Only a single non-rectangular clip can be applied on a View at any time.
Views clipped by a circular reveal animation take priority over
View Outline clipping.
Note that the animation returned here is a one-shot animation. It cannot be re-used, and once started it cannot be paused or resumed.
view - The View will be clipped to the clip circle.centerX - The x coordinate of the center of the clip circle.centerY - The y coordinate of the center of the clip circle.startRadius - The starting radius of the clip circle.endRadius - The ending radius of the clip circle.public static android.animation.Animator createCircularReveal(android.view.View view,
int centerX,
int centerY,
float startRadius,
float endRadius,
int layerType)
Any shadow cast by the View will respect the circular clip from this animator.
Only a single non-rectangular clip can be applied on a View at any time.
Views clipped by a circular reveal animation take priority over
View Outline clipping.
Note that the animation returned here is a one-shot animation. It cannot be re-used, and once started it cannot be paused or resumed.
view - The View will be clipped to the clip circle.centerX - The x coordinate of the center of the clip circle.centerY - The y coordinate of the center of the clip circle.startRadius - The starting radius of the clip circle.endRadius - The ending radius of the clip circle.layerType - View layer type View.LAYER_TYPE_HARDWARE or View.LAYER_TYPE_SOFTWARE