Problem with rotating image

Quillok

Member
Licensed User
Longtime User
Hi,

I'm trying to rotate a simple bitmap on a canvas. I think the code is correct but I've got the problem that there seems to be a mistake while rotating the circle. It looks as if everytime the circle reaches 180 degrees in jumps back to 0 degrees.
I minimized the code to the important things to rotate the circle and put it as an attachment on this post. I hope someone could look over it and help me?!

And by the way, is there a better way to rotate the circle? Because sometimes it is not fluently and there are some micro stops so the rotation is not fluently :/
 

Attachments

  • circle.zip
    15.1 KB · Views: 215

Quillok

Member
Licensed User
Longtime User
It doesn't stop at 180 degrees thats right, but if it reaches the 180 degrees on the move it seems to jump one tick back to 0 and moves on from 180...
Does it not happen on your device? Maybe when you set the interval of the timer to 30 or 50 to see it?

On my Galaxy S2 it happens :confused:

Edit: It happens only if it reaches exact 180 degrees, when I rotate the circle in 11 degree steps it doesn't happen because it "jumps over" the 180...
 
Last edited:
Upvote 0

Similar Threads

Top