Analog speedometer

2019-06-02 22:23发布

问题:

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