public class ViewVisibilityAnimation extends AnimationState<View>
AnimationState.AnimationEndAction<T>, AnimationState.AnimationStartAction<T>, AnimationState.Builder<BuilderSubclass extends AnimationState.Builder<?,T>,T>AnimationAction.Animation<T>| Constructor and Description |
|---|
ViewVisibilityAnimation(int visibility,
List<AnimationAction.Animation<View>> animations) |
| Modifier and Type | Method and Description |
|---|---|
static ViewVisibilityBuilder |
builder(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 ViewVisibilityBuilder |
gone() |
static ViewVisibilityBuilder |
invisible() |
static ViewVisibilityBuilder |
visible() |
shouldRun, shouldRunEndListenerpublic ViewVisibilityAnimation(int visibility,
List<AnimationAction.Animation<View>> animations)
public static ViewVisibilityBuilder builder(int visibility)
public static ViewVisibilityBuilder gone()
public static ViewVisibilityBuilder visible()
public static ViewVisibilityBuilder invisible()
public static AnimationState<View> fadeIn()
public static AnimationState<View> fadeInAndTranslateBack()
public static AnimationState<View> fadeOut(boolean gone)
public static AnimationState<View> fadeOutAndTranslate(boolean gone, float xTranslation, float yTranslation)
public static AnimationState<View> fadeOutAndTranslateX(boolean gone, float xTranslation)
public static AnimationState<View> 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>