B4A Library [Lib] AnimationPlus

Informatix

Expert
Licensed User
Longtime User
That won't work because it's not my class that triggers AnimationEnd, but its ancestor (Animation). Thus "Sender" in AnimationEnd won't hold the value stored in the subclass. Tag will always be null. That's why I never added this property.
The best workaround is to create a class that calls the AnimationPlus functions. You can add as many properties as you need in this class, and fires an AnimationEnd event with the required parameters.
 

Vincenzo Fabiano

Member
Licensed User
Longtime User
I have one Big problem.. If one Object (Ex: Label) is "Animated" by this library is impossibile to remove them by the view. I have every time crash report by the app. (Javanullpointexception)

Any solution?

UPDATE: Only if the item.removeview is on the Sub AnimationEnd or in AnimationEnd call a sub and into sub is present item.removeview

item is declared in Globals
 
Last edited:

rafaelbr20

Member
Licensed User
Longtime User
Hi Informatix,

I just made a donation for this Library !!!

Thanks so Much !!

Rafael
 

rafaelbr20

Member
Licensed User
Longtime User
Hi,

I would keep an object in infinite loop. I did, but was not smoothly, because the object is returning to the starting position and starting the animation again, the right would be that it was REVERSE, so continue where it ended, to make the animation smoother. How can i do it ?

I Tried AnimPlus.RepeatMode = AnimPlus.REPEAT_REVERSE , but it is not working !

Follow my code

AnimPlus.InitializeTranslate("AnimPlus", 0dip, 15dip, 0dip, 0dip)
AnimPlus.Duration = 3000
AnimPlus.SetInterpolator(AnimPlus.INTERPOLATOR_OVERSHOOT)
AnimPlus.RepeatMode = AnimPlus.REPEAT_REVERSE
If AnimPlus.IsInitialized Then
AnimPlus.Stop(imgGrd)
Activity.Invalidate
AnimPlus.Start(imgGrd)
End If


Sub AnimPlus_AnimationEnd
AnimPlus.Start(imgGrd)
End Sub


Thanks so Much !!
 

Informatix

Expert
Licensed User
Longtime User
For an infinite loop: RepeatCount = REPEAT_INFINITE
Depending on the animation to play, PersistAfter = true may be useful too. But a cyclic animation should be rather done with an AnimationDrawable (with the donationware version).
 

Eliezio

Member
Licensed User
Longtime User
Hello Informatix,

How do I get the 2.3 version, I currently have version1.0.
I found the ARCMENU on the forum and would like to use, but it says I need the AnimationPlus 2.3

Thank you for attention
 

Informatix

Expert
Licensed User
Longtime User
Important: I decided that from April 4 AnimationPlus will be completely free (the donationware will become a freeware and will be posted in the forum). In exchange for your donation, you will receive my version of the NineOldAndroids lib, which offers more possibilities of animation than AnimationPlus. The source code in Java will be included. Past donors will receive a free copy of the library on request.
 

thedesolatesoul

Expert
Licensed User
Longtime User
Why April 4th?
Btw...this is a great library Now I can share my code with more people.
 

kiki78

Active Member
Licensed User
Longtime User
Thank you Informatix for future conversion from donationware to freeware of this library .

When I use lot of animation, it will be some time more easy to use single Sub for AnimationEnd event.
But how can I get reference of animated view related to this event ?
I suggest to add View read-only property or event parameter, or why not Tag property.

Kind Regards
 

Informatix

Expert
Licensed User
Longtime User
It's not possible currently. The workaround is to use a class as Erel suggested.

Note that is no longer an issue with the NineOldAndroids lib.
 

ilan

Expert
Licensed User
Longtime User
hi informatix i have also paid for the animation plus lib can i get the oldnine library too please??

thanx
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…