public class TranslationAnimationCreator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static PointFProperty<android.view.View> |
TRANSLATIONS_PROPERTY |
| Constructor and Description |
|---|
TranslationAnimationCreator() |
| Modifier and Type | Method and Description |
|---|---|
static android.animation.Animator |
createAnimation(android.view.View view,
TransitionValues values,
int viewPosX,
int viewPosY,
float startX,
float startY,
float endX,
float endY,
android.animation.TimeInterpolator interpolator,
Transition transition)
Creates an animator that can be used for x and/or y translations.
|
public static final PointFProperty<android.view.View> TRANSLATIONS_PROPERTY
public static android.animation.Animator createAnimation(android.view.View view,
TransitionValues values,
int viewPosX,
int viewPosY,
float startX,
float startY,
float endX,
float endY,
android.animation.TimeInterpolator interpolator,
Transition transition)
view - The view being moved. This may be in the overlay for onDisappear.values - The values containing the view in the view hierarchy.viewPosX - The x screen coordinate of viewviewPosY - The y screen coordinate of viewstartX - The start translation x of viewstartY - The start translation y of viewendX - The end translation x of viewendY - The end translation y of viewinterpolator - The interpolator to use with this animator.