I have items (panels) within a scrollview that I'd like to have fade out and, then, remove from the scrollview. For example:
And, then, on the AnimationEnd event:
My thinking was to use the Sender ("s" in the above code) to get the panel and remove it. Is there a way to get the panel that the Animation is associated with? Or, maybe there's a better way to get the same effect of fading to removal?
B4X:
Dim anim As Animation
anim.InitializeAlpha("itemAnim", 1, 0)
p.Tag = anim 'p is the panel
anim.Duration = 1000
anim.Start(p)
And, then, on the AnimationEnd event:
B4X:
Private Sub itemAnim_AnimationEnd
Dim s As Animation = Sender
Dim removePanel As Panel = ???
removePanel.RemoveView
End Sub
My thinking was to use the Sender ("s" in the above code) to get the panel and remove it. Is there a way to get the panel that the Animation is associated with? Or, maybe there's a better way to get the same effect of fading to removal?