Rotate TextView without cut off text
<p>i'm trying to rotate a TextView, but my text gets cut off by the bounds. But the text is rotated. 
I'm not using this for an animation or some sort. It's just static, design-wise :)</p>

<p>I have a RotatedTextView where i do this:</p>

<pre><code>public class RotatedTextView extends TextView
@Override
public void onDraw(Canvas canvas)
{
    canvas.save(); 
    float py = this.getHeight()/2.0f;
    float px = this.getWidth()/2.0f;
    px = py = 0;
    canvas.rotate(this.degrees, px, py); 
    super.onDraw(canvas); 
    canvas.restore(); 
}
</code></pre>

<p>Here's how it is looking now:</p>

<p><img src="http://i.stack.imgur.com/EHfsP.png" alt="enter image description here"></p>

<p><a href="http://up.belgianlotus.be/files/screenshot20110926at10.50.07.png" rel="nofollow"><em>Orginial source</em></a></p>

<p>Can anyone help me solve this issue ?</p>

<p>Thanks !</p>
