Drawing text at an angle (e.g. upside down) in Android

Posted by Damian on Stack Overflow See other posts from Stack Overflow or by Damian
Published on 2010-04-05T15:05:56Z Indexed on 2010/04/05 15:13 UTC
Read the original article Hit count: 326

Filed under:
|
|

I'm trying to build a custom clock view in Android. See image http://twitpic.com/1devk7

So far to draw the time and hour markers I have been using the Canvas.rotate method to get the desired effect. However, notice that it is difficult to interpret the numbers in the lower half of the clock (e.g. 6 or 9?) because of the angle in which they are drawn.

When using drawText, is it possible to draw the text at 45/90/180 degrees so that all text appears upright when my onDraw method has finished?

© Stack Overflow or respective owner

Related posts about android

Related posts about canvas