Hi,
i'm trying to rotate a TextView. Not in an animation, but just for the
design of my app.
Here's what i do:
I have a "RotatedTextView extends TextView" and i override the onDraw
method like this.
@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();
}
The text gets rotated, but my text gets cut off by the original bounds
of the textview
(like this: http://up.belgianlotus.be/files/screenshot20110926at10.50.07.png
)
Can anyone help me to solve this issue ?
Thanks !!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en