Package io.scanbot.sdk.ui
Class FadeAnimationView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.accessibility.AccessibilityEventSource
public final class FadeAnimationView extends View
Allows to play a progress fade animation with bounce or linear interpolator
-
-
Field Summary
Fields Modifier and Type Field Description public final static Integer
MAX_ALPHA
public final static Long
ANIMATION_LINEAR_DURATION
public final static Long
ANIMATION_DURATION
public final static Long
ANIMATION_UNFADE_DURATION
public final static Integer
ANIMATION_MAX_VALUE
private Boolean
useBounceInterpolator
-
Constructor Summary
Constructors Constructor Description FadeAnimationView(Context context)
FadeAnimationView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description final Boolean
getUseBounceInterpolator()
Sets if should fade animation play with bounce or with linear interpolator final Unit
setUseBounceInterpolator(Boolean useBounceInterpolator)
Sets if should fade animation play with bounce or with linear interpolator final Unit
startProgressAnimation()
final Unit
stopProgressAnimation()
-
-
Constructor Detail
-
FadeAnimationView
FadeAnimationView(Context context)
-
FadeAnimationView
FadeAnimationView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getUseBounceInterpolator
final Boolean getUseBounceInterpolator()
Sets if should fade animation play with bounce or with linear interpolator
-
setUseBounceInterpolator
final Unit setUseBounceInterpolator(Boolean useBounceInterpolator)
Sets if should fade animation play with bounce or with linear interpolator
-
startProgressAnimation
final Unit startProgressAnimation()
-
stopProgressAnimation
final Unit stopProgressAnimation()
-
-
-
-