Class ViewVisibilityAnimation

    • Method Detail

      • 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.