I tested it and it works like a charm :)
I only had to change the "-=" in this.bearing -= Math.toDegrees(diff)
to "+=", otherwise the rotation was inverted.

How do you do the rotation exactly? If I just draw the text onto the
canvas in onDraw(Canvas canvas), and then call canvas.rotate,  then
nothing seems to happen. But if i do canvas.drawBitmap(bitmap,
matrix,paint) where matrix is a rotation matrix, then it does work.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to