title: Rotating, Translating, and Scalling compound views on android
body: <p>I have a custom compound view consisting of a textview above an imagebutton (wrapped in LinearLayout). I would like to be able to apply certain gesture-based transformations on it including:</p>
  
  <ul>
  <li>rotating the imageview with two fingers about it's center. TextView stays same orientation</li>
  <li>Pinch/zoom to scale the imageview (textview should remain the same size)</li>
  <li>move the compound view around the layout</li>
  </ul>
  
  <p>In this scenario there will be several of these views populating a relative/framelayout. The user should be able to interact/modify each view individually.</p>
  
  <p>I've achieved at least a partial implementation for the moving around, based off the answer here: <a href="https://stackoverflow.com/a/18806475/2879847">https://stackoverflow.com/a/18806475/2879847</a>. I've read/tried some implementations of the scaling/rotation functions but they seem to apply only to the drawable/bitmap rather than the containing view object so, I'm not sure where to go from there. Any help would be great</p>
  
  <p>Many Thanks - let me know if you guys need any further clarifications.</p>