安卓车速表(针规) [英] Android Speedometer (Needle Gauge)

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

问题描述

创建一个简单的应用程序来计算您的行驶速度并将其显示在速度计图形中.我可以进行所有速度计算、gps 计算等.但我对动画不太确定.除了温度计示例之外,是否有人有关于针规的任何好的教程或示例?

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.

这个问题也和你的很相似.

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

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