Need advice about animation

Alex69

Member
Licensed User
Longtime User
Hi,
I am using this
B4X:
Sub add_LongClick
   Activity.AddView(toast,70%x,10%y,20%x,7%y)
   toast.Color=Colors.Black
 anim.InitializeAlpha("",0,255)
 anim.RepeatCount=1
 anim.RepeatMode=anim.REPEAT_REVERSE
 anim.Duration=12000
 obj=anim
 
 animate
 
End Sub

Sub animate
Dim a As Animation
a=obj
a.Start(toast)
'toast.RemoveView
End Sub
to manage animation .

1. Why wnen I am calling animation , animation (fading) takes just 2 second while label lasts for 15 seconds?


I am happy to hear all your thoughts about it.
Alex
 
Top