Rotatory knob moving between 150 and 210 degree
I have followed the tutorial and succesfully created a Rotatory knob but it rotate full 360 degree. without stoping . I want to rotate it from 150 to 210 degrees as shown by the progress. .. How could i modify it to rotate between 150 and 210 degrees. My effort I have added given check in onDraw function protected void onDraw(Canvas c) { if(!(angle >150 && angle <210)) c.rotate(angle,getWidth()/2,getHeight()/2); super.onDraw(c); } But first time it stop it and take it back to 180 degree but as i rotate twice or thrice. The angle may be increment to 430 degree or above and my check don't work.