Class ViewVisibilityAnimation
- java.lang.Object
-
- at.wirecube.additiveanimations.additive_animator.animation_set.AnimationState<View>
-
- at.wirecube.additiveanimations.additive_animator.view_visibility.ViewVisibilityAnimation
-
- All Implemented Interfaces:
AnimationAction<View>
public class ViewVisibilityAnimation extends AnimationState<View>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class at.wirecube.additiveanimations.additive_animator.animation_set.AnimationState
AnimationState.AnimationEndAction<T>, AnimationState.AnimationStartAction<T>, AnimationState.Builder<T>
-
Nested classes/interfaces inherited from interface at.wirecube.additiveanimations.additive_animator.animation_set.AnimationAction
AnimationAction.Animation<T>
-
-
Constructor Summary
Constructors Constructor Description ViewVisibilityAnimation(int visibility, List<AnimationAction.Animation<View>> animations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ViewVisibilityBuilderbuilder(int visibility)static AnimationState<View>fadeIn()Sets the visibility of the view to View.VISIBLE and fades it in.static AnimationState<View>fadeInAndTranslateBack()Sets the visibility of the view to View.VISIBLE, fades it in and also set its translationX and translationY back to 0.static AnimationState<View>fadeOut(boolean gone)Fades out the target and then sets its visibility to either View.INVISIBLE or GONE, depending on the gone parameter.static AnimationState<View>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 AnimationState<View>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 AnimationState<View>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()static ViewVisibilityBuildergone()static ViewVisibilityBuilderinvisible()static ViewVisibilityBuildervisible()-
Methods inherited from class at.wirecube.additiveanimations.additive_animator.animation_set.AnimationState
shouldRun, shouldRunEndListener
-
-
-
-
Constructor Detail
-
ViewVisibilityAnimation
public ViewVisibilityAnimation(int visibility, List<AnimationAction.Animation<View>> animations)
-
-
Method Detail
-
builder
public static ViewVisibilityBuilder builder(int visibility)
-
gone
public static ViewVisibilityBuilder gone()
-
visible
public static ViewVisibilityBuilder visible()
-
invisible
public static ViewVisibilityBuilder invisible()
-
fadeIn
public static AnimationState<View> fadeIn()
Sets the visibility of the view to View.VISIBLE and fades it in.
-
fadeInAndTranslateBack
public static AnimationState<View> fadeInAndTranslateBack()
Sets the visibility of the view to View.VISIBLE, fades it in and also set its translationX and translationY back to 0.
-
fadeOut
public static AnimationState<View> fadeOut(boolean gone)
Fades out the target and then sets its visibility to either View.INVISIBLE or GONE, depending on the gone parameter.
-
fadeOutAndTranslate
public static AnimationState<View> 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. Also moves the view by xTranslation and yTranslation.
-
fadeOutAndTranslateX
public static AnimationState<View> 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. Also moves the view horizontally by xTranslation.
-
fadeOutAndTranslateY
public static AnimationState<View> 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. Also moves the view vertically by yTranslation.
-
getAnimations
public List<AnimationAction.Animation<View>> getAnimations()
-
getAnimationEndAction
public AnimationState.AnimationEndAction<View> getAnimationEndAction()
- Overrides:
getAnimationEndActionin classAnimationState<View>
-
getAnimationStartAction
public AnimationState.AnimationStartAction<View> getAnimationStartAction()
- Overrides:
getAnimationStartActionin classAnimationState<View>
-
-