0

Possible Duplicate:
Android - Rotate image around center point?

I need a dial button in my app, so the user can rotate the dial when they drag there finger across it. Does anyone have a nice example?

Community
  • 1
  • 1
JeffLemon
  • 281
  • 3
  • 6
  • 14
  • 1
    I came along an interesting side today here on SO: http://mattgemmell.com/2008/12/08/what-have-you-tried/. So what have you tried? – nhaarman Sep 20 '11 at 19:02
  • I have tried:private double getRotation(float posY,float posX){ double radians = Math.atan2(posY, posX); return Math.toDegrees(radians); } – JeffLemon Sep 20 '11 at 19:18
  • But it returns a number between 0 and around 60 – JeffLemon Sep 20 '11 at 19:18

0 Answers0