내 코드가 수정되었습니다. ACTION_DOWN이 호출되었을 때 초기 학위를 취득한 다음 ACTION_MOVE 동안 해당 정도만큼 회전을 오프셋해야합니다. 코드 게시
//Finds the initial degree where my finger is pressed.
case MotionEvent.ACTION_DOWN:{
double arc = Math.atan2(event.getX() - v.getWidth()/2, v.getHeight()/2 - event.getY());
initDegree = (float) Math.toDegrees(arc);
setTitle("counter" + counter++);
break;}
// Using the Initial Degree change I offset the degrees to send to my rotate function.
case MotionEvent.ACTION_MOVE:{
double arc = Math.atan2(event.getX() - v.getWidth()/2, v.getHeight()/2 - event.getY());
float degrees = (float) Math.toDegrees(arc);
rotate(degrees-initDegree);
break;}
작동하지 않는 코드라도 게시해야합니다. 그것은 당신의 질문에 대답하고자하는 사람들에게 큰 도움이 될 것입니다! – aganders3
질문에 대한 답변이있는 경우 솔루션을 답변으로 게시하고 답변 옆의 확인란을 클릭하여 동의하십시오. –