I am using Animation to display a rotating object. My objective is to have the object rotate around itself smoothly for X number of seconds without a pause in between.
I am using the code below
The code above seems to do the job, except that the rotation starts slow then increases speed. Is there anything I can do about it to make sure the object rotates at the same speed all the time?
You can use this code to create a linear animation:
B4X:
Dim jo As JavaObject = aRotate
Dim interpolator As JavaObject
interpolator.InitializeNewInstance("android.view.animation.LinearInterpolator", Null)
jo.RunMethod("setInterpolator", Array(interpolator))