Android Question how can I stop other animation?

khosrwb

Active Member
Licensed User
Longtime User
how can I stop other animation?
I need run an animation , how can I run only one animation?(when I touch all imageview , I see animation run at all objects ( imageview )
I will only an animation run at last touch and stop other animation
 

Attachments

  • a.zip
    34 KB · Views: 203

derez

Expert
Licensed User
Longtime User
B4X:
Sub imageview_Click
    For Each iv As ImageView In Activity.GetAllViewsRecursive
        If iv = Sender Then
            anim.InitializeAlpha("animAlpha" , 1 , 0.7 )
            anim.Duration = 600
            anim.RepeatCount = -1
            anim.Start(iv)
        Else
            anim.Stop(iv)
        End If
    Next
End Sub
 
Upvote 0
Top