I am animating a panel's visibility using:
If I set the animation to a long duration, like 10 seconds, but then want to cancel the duration and set a new duration, it appears the original time duration will still execute.
For example, lets say I initially set the visibility to "False" (hide) the panel over a period of 10 seconds, then 5 seconds into the hide animation, I call the same animation with a new value of 20 seconds, the panel will still disappear at the original 10 second animation point.
How can I change the animation time without the original one be executed?
I tried these variations, but they did not work:
B4X:
Panel.SetVisibleAnimated(TimeinMs, False)
For example, lets say I initially set the visibility to "False" (hide) the panel over a period of 10 seconds, then 5 seconds into the hide animation, I call the same animation with a new value of 20 seconds, the panel will still disappear at the original 10 second animation point.
How can I change the animation time without the original one be executed?
I tried these variations, but they did not work:
B4X:
Panel.SetVisibleAnimated(0, False)
Panel.visible = true
Panel.SetVisibleAnimated(20000, False)
Panel.visible = false
Panel.visible = true
Panel.SetVisibleAnimated(20000, False)