Can somebody give me a tutorial on how to make an analog speedometer with Android? I have currently the speed (get by GPS), but I don't know how to do the graphic part.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I've been looking for something similar that I could convert into a game spinner. I found this tutorial for an analog thermometer. http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/
回答2:
Check http://developer.android.com/guide/topics/graphics/2d-graphics.html Look for "ShapeDrawable". You are free to save the data in any format you like