Moving image in circle with touch move

I want to move an image within a circle with my touch on move. I've been confused how to determine the coordinates circle boundaries when the finger moved.

For example I want to move this image like lock screen on android tabs.


Now After learn the answer below, I managed to draw an circle image and moving this image around the screen.

And now, I want to restrict the image movement so that it only can moved in a circle, just like in the image above. Any ideas?

I hope you can help me. Thank you!


so I've actually not done anything like this but i know this tutorial : and the guy does something similar to what you want,

this video is one right in the middle of an entire playlist of tutorial videos if you dont get what he's doing check the previous few... as for moving the image in a circle i'm sure there'll be some way to set boundries :)

hope it was helpful!

Need Your Help

Android: How can I prevent MediaPlayer from playing overlapping audio?

android audio

I'm building a thug life sound effect player and I wanted to know how can I stop the MediaPlayer from playing 2 or more tracks the same time.