title: Rotating ImageView and its background without crop
body: <p>I've been searching a lot, but I can't get a solution for my problem. I can't use <code>android:rotation</code> as I want this app to be compatible with Android API under 11 version.
  My problem is something similar to this: <a href="https://stackoverflow.com/questions/1930963/rotating-a-view-in-android">Rotating a view in Android</a></p>
  
  <p>I've done this:</p>
  
  <pre><code>@Override
  public void draw(Canvas canvas) {
      canvas.save();
      Drawable d = getDrawable();
      canvas.rotate(-10, d.getIntrinsicWidth() / 2, d.getIntrinsicHeight() / 2);
      super.draw(canvas);
      canvas.restore();
  }
  </code></pre>
  
  <p>The ImageView is part of a RelativeLayout where I place the image and some text.</p>
  
  <p>But the image is cropped in the edges. How can I avoid that?</p>