Package 

Class PreviewMorphAnimator

    • Constructor Summary

      Constructors 
      Constructor Description
      PreviewMorphAnimator()
      PreviewMorphAnimator(long showTranslationDuration, long morphShowDuration, long morphHideDuration, long hideTranslationDuration)
    • Method Summary

      Modifier and Type Method Description
      void cancel(FrameLayout previewView, PreviewBar previewBar) Cancels any animation started by move, show or hide
      void move(FrameLayout previewView, PreviewBar previewBar) Use getProgress and getMax to determine how much the preview should move
      void show(FrameLayout previewView, PreviewBar previewBar) Animates the preview appearance.
      void hide(FrameLayout previewView, PreviewBar previewBar) Animates the preview disappearance.
      • Methods inherited from class com.github.rubensousa.previewseekbar.animator.PreviewAnimator

        show
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PreviewMorphAnimator

        PreviewMorphAnimator()
      • PreviewMorphAnimator

        PreviewMorphAnimator(long showTranslationDuration, long morphShowDuration, long morphHideDuration, long hideTranslationDuration)
    • Method Detail

      • cancel

         void cancel(FrameLayout previewView, PreviewBar previewBar)

        Cancels any animation started by move, show or hide

        Parameters:
        previewView - The view that displays the preview
        previewBar - The PreviewBar that's responsible for this preview
      • move

         void move(FrameLayout previewView, PreviewBar previewBar)

        Use getProgress and getMax to determine how much the preview should move

        Parameters:
        previewView - The view that displays the preview
        previewBar - The PreviewBar that's responsible for this preview
      • show

         void show(FrameLayout previewView, PreviewBar previewBar)

        Animates the preview appearance.

        Please note that any animations started by move or hide might still be running

        Parameters:
        previewView - The view that displays the preview
        previewBar - The PreviewBar that's responsible for this preview
      • hide

         void hide(FrameLayout previewView, PreviewBar previewBar)

        Animates the preview disappearance.

        Please note that any animations started by move or show might still be running

        Parameters:
        previewView - The view that displays the preview
        previewBar - The PreviewBar that's responsible for this preview