Android的车速表(针机号) [英] Android Speedometer (Needle Gauge)

查看:114
本文介绍了Android的车速表(针机号)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建一个简单的应用程序,计算的速度,你去和速度表的图形显示。我可以做所有的速度计算,全球定位系统计算等。但我不是太肯定的动画。有没有人有比温度计的例子在那里等针计任何好的教程或例子?

Creating a simple app that calculates the speed your going and displays it in a speedometer graphic. I can do all the speed calculations, gps calculations etc.. but i am not too sure about the animation. Does anyone have any good tutorials or examples on needle gauges other than the thermometer example out there?

推荐答案

您很可能开始类似的这个

然后值之间转换时,做一个动画,其中针逐渐动作的时间到下一个值X单位单位。

Then when transitioning between values, do an animation where the needle gradually moves to the next value X units per unit of time.

这个问题也很相似,你的。

这篇关于Android的车速表(针机号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆