title: Continuously Rotate Image OnTouchEvent In Android
body: <p>I'm new to Android development and am trying to figure out how to continuously rotate an image using the onTouchEvent.  I am using the following code to rotate the image 10 degrees when the onTouchEvent detects a screen touch and vice versa, but I want the image to keep rotating in 10 degree intervals as long as the onTouchEvent occurs.  Thanks!</p>
  
  <pre><code>    @Override
      public boolean onTouchEvent(MotionEvent event) {
          if(event.getAction()==MotionEvent.ACTION_DOWN) {
              degrees=degrees+10;
              make(degrees);
              }
          else if(event.getAction()==MotionEvent.ACTION_UP) {
              degrees=degrees-10;
              make(degrees);
              }
          return super.onTouchEvent(event);
          }
  }
  </code></pre>