JordiCP Expert Licensed User Longtime User Apr 2, 2018 #1 I need to make a continuous scale animation on some views: scale from x1 to x1.5 and back to x1, in a certain period, and loop again and again It can be made with timers and layout animations but I wonder if there is a single (or short) way to do exactly this that I have missed Thanks!
I need to make a continuous scale animation on some views: scale from x1 to x1.5 and back to x1, in a certain period, and loop again and again It can be made with timers and layout animations but I wonder if there is a single (or short) way to do exactly this that I have missed Thanks!
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2018 #2 B4X: Sub AnimatePanel(p As Panel) Do While True p.SetLayoutAnimated(1000, 1, 10dip, 10dip, 200dip, 200dip) Sleep(1000) p.SetLayoutAnimated(1000, 1, 10dip, 10dip, 100dip, 100dip) Sleep(1000) Loop End Sub Upvote 0
B4X: Sub AnimatePanel(p As Panel) Do While True p.SetLayoutAnimated(1000, 1, 10dip, 10dip, 200dip, 200dip) Sleep(1000) p.SetLayoutAnimated(1000, 1, 10dip, 10dip, 100dip, 100dip) Sleep(1000) Loop End Sub