Android Question How persistent animation

devmobile

Active Member
Licensed User
I use below code
B4X:
Dim anim As Animation
    Dim xmll As XmlLayoutBuilder
    anim = xmll.LoadAnimation("zoom_in","EndBounce")
    anim.Duration = 500
    anim.PersistAfter = False
    anim.Start(View1)

When my view zoom in,i need to return to first state
But Animation library dont have persistent properties
How can i use it?
 

Emme Developer

Well-Known Member
Licensed User
Longtime User
Have you tried to set persistAfter to true?
You need to animate view layout, for example with a SetLayoutAnimated. Animation doesn't edit view position and dimension
 
Upvote 0

Emme Developer

Well-Known Member
Licensed User
Longtime User
I use Animation library,it haven't Persistent properties
I read a persistAfter property. By the way, as I wrote, animation doesn't edit the view layout property. You need to do it by using method like SetLayoutAnimated, o implements a custom method with timer or sleep function. See animation border code snippet for a good example
 
Upvote 0

devmobile

Active Member
Licensed User
I read a persistAfter property. By the way, as I wrote, animation doesn't edit the view layout property. You need to do it by using method like SetLayoutAnimated, o implements a custom method with timer or sleep function. See animation border code snippet for a good example
I ise custom animation(xml file) |:
 
Upvote 0
Top