How to Rotate Circle with Text on TouchEvent or on TrackBallMoveEvent.
-
How do I create this kind of circle?
I had created a circle and rotated it also, but it always starts from 0 degrees.
-
Is there any other option to create this kind of circle?
Each circle have different text and each of the circles can move independently.

So, this is definitely not complete, but I think it’s most of what you need.
Limitations/Assumptions
Solution
Essentially, I created a
Fieldsubclass to represent each disc. You create the field by passing in an array of labels, to be spaced around the perimeter, a radius, and a color. Hardcoded in eachDiscFieldis an edge inset for the text, which kind of assumes a certain size difference between discs. You should probably make that more dynamic.Containing all the
DiscFieldobjects is theDiscManager. It aligns the childDiscFieldsinsublayout(), and handles proper delegation of touch events … since the fields overlap, and a touch within aDiscFields extent that does not also fall within its radius (i.e. the corners) should be handled by a larger disc.Finally, a screen to use them:
Results