Sep 13, 2012 Replies: 136 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/file/d/0B-kneWWcCy7PUTNERGJIamlzSjA/view?usp=sharing&resourcekey=0-LK97oJs9aV-UHK4CWY0utw Attachments AnimationPlus v2.3.zip AnimationPlus v2.3.zip 12.7 KB · Views: 5,405 Last edited: Nov 3, 2021 Click to expand...
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/file/d/0B-kneWWcCy7PUTNERGJIamlzSjA/view?usp=sharing&resourcekey=0-LK97oJs9aV-UHK4CWY0utw
walterf25 Expert Licensed User Longtime User Sep 13, 2012 #3 Awesome Very nice buddy, thanks a million! :sign0098::sign0098::sign0098::sign0098:
M Merlot2309 Active Member Licensed User Longtime User Sep 14, 2012 #5 Thank you so much. I am so happy/lucky that you found B4A and learn a lot from you great examples. Best regards, Helen.
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 Longtime User Sep 15, 2012 #9 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....
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....
Informatix Expert Licensed User Longtime User Sep 15, 2012 #10 Thanks a lot for all the nice comments. But this library is just a wrapper around a few API methods. There's no real personal work here.
Thanks a lot for all the nice comments. But this library is just a wrapper around a few API methods. There's no real personal work here.
vb1992 Well-Known Member Licensed User Longtime User Sep 15, 2012 #11 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)
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)
A awama Active Member Licensed User Longtime User Sep 15, 2012 #12 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
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 Longtime User Sep 15, 2012 #13 vb1992 said: 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) Click to expand... 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, ...
vb1992 said: 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) Click to expand... 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 Longtime User Sep 15, 2012 #14 awama said: 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 Click to expand... What do you mean by "shadow effects" ? Since this library is dedicated to Animation, I can't see where I could put shadows.
awama said: 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 Click to expand... What do you mean by "shadow effects" ? Since this library is dedicated to Animation, I can't see where I could put shadows.
A awama Active Member Licensed User Longtime User Sep 15, 2012 #15 I was thinking of "Translate Animation" if an object (flying window for exapmel) hovering low over a fictive bottom. Informatix said: What do you mean by "shadow effects" ? Since this library is dedicated to Animation, I can't see where I could put shadows. Click to expand...
I was thinking of "Translate Animation" if an object (flying window for exapmel) hovering low over a fictive bottom. Informatix said: What do you mean by "shadow effects" ? Since this library is dedicated to Animation, I can't see where I could put shadows. Click to expand...
Informatix Expert Licensed User Longtime User Sep 15, 2012 #17 awama said: I was thinking of "Translate Animation" if an object (flying window for exapmel) hovering low over a fictive bottom. Click to expand... 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 said: I was thinking of "Translate Animation" if an object (flying window for exapmel) hovering low over a fictive bottom. Click to expand... 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.
A awama Active Member Licensed User Longtime User Sep 15, 2012 #18 Informatix said: 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. Click to expand... Ok, I think its a good solution. Thank you.
Informatix said: 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. Click to expand... Ok, I think its a good solution. Thank you.
Informatix Expert Licensed User Longtime User Oct 1, 2012 #20 New version Version 2.0 (donationware version): I added: AnimationSet (animations on the same view are played together) two new Drawables: AnimationDrawable: image-by-image animation TransitionDrawable: cross-fade between two drawables
New version Version 2.0 (donationware version): I added: AnimationSet (animations on the same view are played together) two new Drawables: AnimationDrawable: image-by-image animation TransitionDrawable: cross-fade between two drawables