B4A Library Android View Animations Library

Original library: https://github.com/daimajia/AndroidViewAnimations

v1.10 - Added: PivotX, PivotY, RepeatMode (restart animation, reverse animation)


687474703a2f2f7777332e73696e61696d672e636e2f6d773639302f3631306463303334677731656a37356d69327737376732306333306a623471722e676966


Effects​


Attension​

Flash, Pulse, RubberBand, Shake, Swing, Wobble, Bounce, Tada, StandUp, Wave

Special​

Hinge, RollIn, RollOut, Landing, TakingOff, DropOut

Bounce​

BounceIn, BounceInDown, BounceInLeft, BounceInRight, BounceInUp

Fade​

FadeIn, FadeInUp, FadeInDown, FadeInLeft, FadeInRight
FadeOut, FadeOutDown, FadeOutLeft, FadeOutRight, FadeOutUp

Flip​

FlipInX, FlipOutX, FlipOutY

Rotate​

RotateIn, RotateInDownLeft, RotateInDownRight, RotateInUpLeft, RotateInUpRight
RotateOut, RotateOutDownLeft, RotateOutDownRight, RotateOutUpLeft, RotateOutUpRight

Slide​

SlideInLeft, SlideInRight, SlideInUp, SlideInDown
SlideOutLeft, SlideOutRight, SlideOutUp, SlideOutDown

Zoom​

ZoomIn, ZoomInDown, ZoomInLeft, ZoomInRight, ZoomInUp
ZoomOut, ZoomOutDown, ZoomOutLeft, ZoomOutRight, ZoomOutUp


AndroidViewAnimations

Author:
Author: daimajia - B4a Wrapper: Pendrush
Version: 1.10
  • AndroidViewAnimations
    • Events:
      • AnimationCancel
      • AnimationEnd
      • AnimationStart
    • Fields:
      • INTERPOLATOR_ACCELERATE As Int
      • INTERPOLATOR_ACCELERATE_DECELERATE As Int
      • INTERPOLATOR_ANTICIPATE As Int
      • INTERPOLATOR_ANTICIPATE_OVERSHOOT As Int
      • INTERPOLATOR_BOUNCE As Int
      • INTERPOLATOR_DECELERATE As Int
      • INTERPOLATOR_LINEAR As Int
      • REPEAT_MODE_RESTART As Int
      • REPEAT_MODE_REVERSE As Int
      • TECHNIQUES_BOUNCE As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_BOUNCE_IN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_BOUNCE_IN_DOWN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_BOUNCE_IN_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_BOUNCE_IN_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_BOUNCE_IN_UP As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_DROPOUT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_IN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_IN_DOWN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_IN_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_IN_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_IN_UP As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_OUT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_OUT_DOWN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_OUT_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_OUT_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FADE_OUT_UP As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FLASH As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FLIP_IN_X As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FLIP_IN_Y As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FLIP_OUT_X As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_FLIP_OUT_Y As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_HINGE As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_LANDING As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_PULSE As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROLL_IN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROLL_OUT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_IN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_IN_DOWN_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_IN_DOWN_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_IN_UP_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_IN_UP_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_OUT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_OUT_DOWN_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_OUT_DOWN_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_OUT_UP_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ROTATE_OUT_UP_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_RUBBER_BAND As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SHAKE As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SLIDE_IN_DOWN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SLIDE_IN_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SLIDE_IN_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SLIDE_IN_UP As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SLIDE_OUT_DOWN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SLIDE_OUT_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SLIDE_OUT_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SLIDE_OUT_UP As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_STAND_UP As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_SWING As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_TADA As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_TAKING_OFF As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_WAVE As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_WOBBLE As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_IN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_IN_DOWN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_IN_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_IN_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_IN_UP As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_OUT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_OUT_DOWN As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_OUT_LEFT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_OUT_RIGHT As com.daimajia.androidanimations.library.Techniques
      • TECHNIQUES_ZOOM_OUT_UP As com.daimajia.androidanimations.library.Techniques
    • Functions:
      • Animate (View As Object)
        Start animation on specific view.
      • Initialize (EventName As String)
        Initialize library
        AndroidViewAnimations1.Interpolator = AndroidViewAnimations1.INTERPOLATOR_ACCELERATE_DECELERATE
        AndroidViewAnimations1.RepeatTimes = 3
        AndroidViewAnimations1.Duration = 1200
        AndroidViewAnimations1.Delay = 0
        AndroidViewAnimations1.RepeatMode = AndroidViewAnimations1.REPEAT_MODE_REVERSE
        AndroidViewAnimations1.PivotX = 500
        AndroidViewAnimations1.PivotY = -100
        AndroidViewAnimations1.Techniques = AndroidViewAnimations1.TECHNIQUES_FLIP_IN_X
        AndroidViewAnimations1.Animate(Label1)
      • IsInitialized As Boolean
      • IsRunning As Boolean
        Check if animation is running.
      • IsStarted As Boolean
        Check if animation is started.
      • Stop (Reset As Boolean)
        Stop animation.
        If Reset is True, view will reset position, size, color, etc.
        You can use Stop(True) on event AnimationEnd to reset view after animation is finished.
    • Properties:
      • Delay As Long [write only]
        Set delay in milliseconds.
      • Duration As Long [write only]
        Set duration in milliseconds.
      • Interpolator As Int [write only]
        Set Interpolator
        Use one of INTERPOLATOR constants
      • PivotX As Float [write only]
        Set Pivot X.
      • PivotY As Float [write only]
        Set Pivot Y.
      • RepeatMode As Int [write only]
        Use one of REPEAT_MODE constants
        REPEAT_MODE_RESTART = Restart animation.
        REPEAT_MODE_REVERSE = Reverse animation.
      • RepeatTimes As Int [write only]
        Specify the number of times the animation will be repeated.
        Set 0 for infinite loop.
      • Techniques As com.daimajia.androidanimations.library.Techniques [write only]
        Set animation techniques.
        Use one of TECHNIQUES constants.
 

Attachments

  • AndroidViewAnimationsLibrary.zip
    80 KB · Views: 114
  • AndroidViewAnimationsExample.zip
    9.6 KB · Views: 99
Last edited:

MarcoRome

Expert
Licensed User
 
Top