Android Pinch/Two Finger rotation on view
<p>On iPhone I simply do this (and it works flawlessly): </p>

<p>view.transform = CGAffineTransformRotate(transform, [(UIRotationGestureRecognizer *)recognizer rotation]);</p>

<p>I of course am expecting to do more work on the Android side (as usual).  I noticed that Android does not have a two finger rotation gesture detector.  Any thoughts of how I could implement such behavior?</p>

<p>This is what I use for my pinch scale detector:</p>

<pre><code>private class ScaleListener extends ScaleGestureDetector.SimpleOnScaleGestureListener {
    @Override
    public boolean onScale(ScaleGestureDetector detector) {
        mScaleFactor *= detector.getScaleFactor();

        // Don't let the object get too small or too large.
        mScaleFactor = Math.max(0.1f, Math.min(mScaleFactor, 5.0f));

        invalidate();
        return true;
    }
}
</code></pre>
