public class ViewVisibilityAnimation extends AnimationState<View>
AnimationState.AnimationEndAction<T>, AnimationState.AnimationStartAction<T>AnimationAction.Animation<T>| Constructor and Description |
|---|
ViewVisibilityAnimation(int visibility,
List<AnimationAction.Animation<View>> animations) |
| Modifier and Type | Method and Description |
|---|---|
static ViewVisibilityAnimation |
fadeIn()
Sets the visibility of the view to View.VISIBLE and fades it in.
|
static ViewVisibilityAnimation |
fadeInAndTranslateBack()
Sets the visibility of the view to View.VISIBLE, fades it in and also set its translationX and translationY back to 0.
|
static ViewVisibilityAnimation |
fadeOut(boolean gone)
Fades out the target and then sets its visibility to either View.INVISIBLE or GONE, depending on the gone parameter.
|
static ViewVisibilityAnimation |
fadeOutAndTranslate(boolean gone,
float xTranslation,
float yTranslation)
Fades out the target and then sets its visibility to either View.INVISIBLE or GONE, depending on the gone parameter.
|
static ViewVisibilityAnimation |
fadeOutAndTranslateX(boolean gone,
float xTranslation)
Fades out the target and then sets its visibility to either View.INVISIBLE or GONE, depending on the gone parameter.
|
static ViewVisibilityAnimation |
fadeOutAndTranslateY(boolean gone,
float yTranslation)
Fades out the target and then sets its visibility to either View.INVISIBLE or GONE, depending on the gone parameter.
|
AnimationState.AnimationEndAction<View> |
getAnimationEndAction() |
List<AnimationAction.Animation<View>> |
getAnimations() |
AnimationState.AnimationStartAction<View> |
getAnimationStartAction() |
shouldRun, shouldRunEndListenerpublic ViewVisibilityAnimation(int visibility,
List<AnimationAction.Animation<View>> animations)
public static ViewVisibilityAnimation fadeIn()
public static ViewVisibilityAnimation fadeInAndTranslateBack()
public static ViewVisibilityAnimation fadeOut(boolean gone)
public static ViewVisibilityAnimation fadeOutAndTranslate(boolean gone, float xTranslation, float yTranslation)
public static ViewVisibilityAnimation fadeOutAndTranslateX(boolean gone, float xTranslation)
public static ViewVisibilityAnimation fadeOutAndTranslateY(boolean gone, float yTranslation)
public List<AnimationAction.Animation<View>> getAnimations()
public AnimationState.AnimationEndAction<View> getAnimationEndAction()
getAnimationEndAction in class AnimationState<View>public AnimationState.AnimationStartAction<View> getAnimationStartAction()
getAnimationStartAction in class AnimationState<View>