Analog speedometer

╄→гoц情女王★ 提交于 2020-01-03 04:23:07

问题


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



来源:https://stackoverflow.com/questions/3305281/analog-speedometer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!