-
- All Implemented Interfaces:
-
com.github.rubensousa.previewseekbar.animator.PreviewAnimator
public class PreviewFadeAnimator implements PreviewAnimator
A PreviewAnimator that just fades the preview frame
-
-
Constructor Summary
Constructors Constructor Description PreviewFadeAnimator()PreviewFadeAnimator(long showDuration, long hideDuration)
-
Method Summary
Modifier and Type Method Description voidmove(FrameLayout previewView, PreviewBar previewBar)Use getProgress and getMax to determine how much the preview should move voidshow(FrameLayout previewView, PreviewBar previewBar)Animates the preview appearance. voidhide(FrameLayout previewView, PreviewBar previewBar)Animates the preview disappearance. voidcancel(FrameLayout previewView, PreviewBar previewBar)Cancels any animation started by move, show or hide -
-
Method Detail
-
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 previewpreviewBar- 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 previewpreviewBar- 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 previewpreviewBar- The PreviewBar that's responsible for this preview
-
cancel
void cancel(FrameLayout previewView, PreviewBar previewBar)
- Parameters:
previewView- The view that displays the previewpreviewBar- The PreviewBar that's responsible for this preview
-
-
-
-