title: How to apply a transformation to View?
body: <p>I have a custom <code>View</code> with overridden <code>onDraw</code>:</p>
  
  <pre><code>protected void onDraw(Canvas canvas)
  {
      canvas.drawPath(m_path, m_paint);
  }
  </code></pre>
  
  <p>I want to make it possible to pan/scale/rotate the view. And I do not want to redraw it every time user moves his finger. My idea is to apply a transformation matrix to the view in response to user gestures. </p>
  
  <p>I know there is a method <code>ImageView.setImageMatrix</code> that seems to do what I need, but I have not an <code>ImageView</code>, but a custom <code>View</code>.</p>
  
  <p>In iOS, I used <code>CALayer</code> and <code>myLayer.affineTransform = CGAffineTransformMake...</code>.</p>
  
  <p>How would you suggest to handle it in Android?</p>