问题描述
我试图建立在Android的定制时钟视图。见形象 http://twitpic.com/1devk7
I'm trying to build a custom clock view in Android. See image http://twitpic.com/1devk7
迄今为止绘制的时间和小时刻度使用Canvas.rotate方法来获得预期的效果我一直。然而,请注意,这是因为在它们所绘制的角度的难以除preT中的时钟(例如,6或9?)的下半部分中的数字。
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.
在使用的drawText,是有可能使所有文字直立出现的时候,我的OnDraw方法完成绘制文本在45/90/180度?
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?
推荐答案
http://stackoverflow.com/questions/2558257/how-can-you-display-upside-down-text-with-a-textview-in-android
这篇关于在一个角度绘制文本(例如倒置)Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!