B4A Library [Lib] AnimationPlus

Informatix

Expert
Licensed User
Hello everybody,

Here's my new baby. The AnimationPlus library extends the Animation library by adding:
  • the interpolators (Bounce, Accelerate, Overshoot, Cycle, etc.)
  • two parameters:
    PersistAfter (boolean): if True, the animation does not revert to its initial state
    StartOffset (long): delay before the animation really starts
  • AnimationSet (animations on the same view are played together)
  • four new Drawables:
    AnimationDrawable: image-by-image animation
    ClipDrawable: drawable with automatic clipping (ideal for progress bars)
    LayerDrawable: multi-layer drawable
    TransitionDrawable: cross-fade between two drawables
  • for translation animations:
    PauseTranslation/ResumeTranslation/IsPaused: new functions to pause/resume the animation
    AnimationRepeat: new event
List of properties and methods

If you want a library with more possibilities, and easy to use, give a try to NineOldAndroids.

Examples : https://drive.google.com/open?id=0B-kneWWcCy7PUTNERGJIamlzSjA
 

Attachments

Last edited:

Merlot2309

Active Member
Licensed User
Thank you so much.

I am so happy/lucky that you found B4A and learn a lot from you great examples.

Best regards,
Helen.
 

tremara1

Active Member
Licensed User
Great Work

I have just had a play with the demo and found it to be very useful and easy to use. I think the main use for me will be as a change transition from panel to panel in my app(s).
I know there are "page animators" but this is so easy to set up and make work.
Well done you should be proud of your work....
 

vb1992

Well-Known Member
Licensed User
where can I find out what the arg1, arg2...etc are

in an example like this:

AnimPlus.InitializeScaleCenter("AnimPlus", 0, 0, 1, 1, ivAndroid)

AnimPlus.InitializeScaleCenter(arg1,arg2,arg3,arg4,arg5,arg6)
 

awama

Active Member
Licensed User
A tool more easily develop effective and professional apps. Many thanks for your "new baby". :sign0098:

One question, is it possible to add shadow effects to the library?

Walter
 

Informatix

Expert
Licensed User
where can I find out what the arg1, arg2...etc are

in an example like this:

AnimPlus.InitializeScaleCenter("AnimPlus", 0, 0, 1, 1, ivAndroid)

AnimPlus.InitializeScaleCenter(arg1,arg2,arg3,arg4,arg5,arg6)
Apart the functions and properties specified in the first post, everything else comes from the standard libraries. InitializeScaleCenter is a function of the Animation library.
I don't have the source code of these libraries, hence arg1, arg2, ...
 

Informatix

Expert
Licensed User
A tool more easily develop effective and professional apps. Many thanks for your "new baby". :sign0098:

One question, is it possible to add shadow effects to the library?

Walter
What do you mean by "shadow effects" ? Since this library is dedicated to Animation, I can't see where I could put shadows.
 

awama

Active Member
Licensed User
I was thinking of "Translate Animation" if an object (flying window for exapmel) hovering low over a fictive bottom.


What do you mean by "shadow effects" ? Since this library is dedicated to Animation, I can't see where I could put shadows.
 

Informatix

Expert
Licensed User
I was thinking of "Translate Animation" if an object (flying window for exapmel) hovering low over a fictive bottom.
Ah ok... This library cannot do this kind of thing. It's for basic tween animations, there's no rendering, no light or surface effect, etc. If you want to do a simple shadow effect, create a semi-transparent panel behind the window, slightly shifted. Then do a translation animation of both views.
 

awama

Active Member
Licensed User
Ah ok... This library cannot do this kind of thing. It's for basic tween animations, there's no rendering, no light or surface effect, etc. If you want to do a simple shadow effect, create a semi-transparent panel behind the window, slightly shifted. Then do a translation animation of both views.
Ok, I think its a good solution. Thank you.
 
Top