Question

I'm creating an app that uses a disk to browse files and such, like this: http://dl.dropbox.com/u/8051037/disk_ab1.png

I want to make it be able to spin as the user turns it, and I know I need to use a RotateAnimation, but I can't figure out how to make it follow the finger.

Was it helpful?

Solution

I think you should use a custom view, see this examle which rotates a ball: How can I use the animation framework inside the canvas?

then you can use motion event to control the angle of rotation: Android firing onTouch event for multiple ImageViews

Custom view can be transparent so you can combine it with other veiws in your layout.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top