I'm doing something similar in my current app. It might not apply
directly because I'm using GL for my drawing and don't have access to
the same API calls. An important thing is to remember that the user is
moving finger diagonally in some cases, so you need to calculate the
angular velocity in order to move in a natural way.

A simple way to attempt it would be to treat the user's initial touch
point as the source angle, and the current touch-point as a target and
then compute the angle to both from the center of your circle - this
would allow you to compute the delta angle as they move. With the
delta angle you would transform the path each update.

If you handle the touch events directly, you will need to be careful
as there are MANY events that get sent, and some of the changes are
very small. Sometimes you get really large changes as well. You may
also want to get the time between events and reject events that happen
too rapidly.


On Mar 5, 3:25 am, Bart <bvandep...@gmail.com> wrote:
> Hi, I'd like to display a given String in a circle (so bend the string
> so that the end of the string touches the beginning of the string).
> And Then I'd like to let the user rotate the circle by grabbing and
> dragging it clockwise or counterclockwise.
> Do you guys know what would be the best (simplest, smoothest) way to
> do this? I already saw that using drawOnPath i can draw text in a
> circle. Do you have any tips on how to proceed with dragging and
> rotating the textcircle?

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

Reply via email to