khosrwb Active Member Licensed User Longtime User Sep 24, 2016 #1 when I touch any imageview I will start animation on it But animation started on laste imageview. what can I do for solve this problem? Attachments a.zip a.zip 34.2 KB · Views: 335
when I touch any imageview I will start animation on it But animation started on laste imageview. what can I do for solve this problem?
derez Expert Licensed User Longtime User Sep 24, 2016 #2 The problem is that you have 4 imageviews with the same eventname. Change your code like this: Code: Copy Sub imageview_Click Dim iv As ImageView = Sender anim.InitializeAlpha("animAlpha" , 1 , 0.7 ) anim.Duration = 600 anim.RepeatCount = -1 anim.Start(iv) End Sub Upvote 0
The problem is that you have 4 imageviews with the same eventname. Change your code like this: Code: Copy Sub imageview_Click Dim iv As ImageView = Sender anim.InitializeAlpha("animAlpha" , 1 , 0.7 ) anim.Duration = 600 anim.RepeatCount = -1 anim.Start(iv) End Sub
khosrwb Active Member Licensed User Longtime User Sep 24, 2016 #3 thanks derez a new question : 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 Upvote 0
thanks derez a new question : 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