Code looks like this and is running inside a loop so tImgRotate is constantly incremented:
Code: Select all
add 1 to tImgRotate
if tImgRotate = "1999" then
add 1 to wcount
set the icon of button "wbut" to "image" & wcount & ".png"
put 0 into tImgRotate
if wcount = "4" then
put "0" into wcount
end if
end if
I should also mention that this spinning wheel is a busy indicator as the app is doing a bunch of calculations which take some time and are also fairly resource intensive. Is it possible that the calculations are slowing the device down and causing the animation to not display correctly?
Any suggestions or advice are greatly appreciated. Is there a better way to do a simple animation in Android? I did also try an animated gif but it didn't really work properly and looked pretty bad.
Thanks to anyone who can offer advice,
TJ.