开发者

how would I create an animation in android, specifically one that looks like a speedometer?

开发者 https://www.devze.com 2023-02-08 11:14 出处:网络
I am creating an app that is a speedometer, but right now, it looks very bland. what I want to do, is make it look like a speedometer in a modern car. one that would have the number, and then the need

I am creating an app that is a speedometer, but right now, it looks very bland. what I want to do, is make it look like a speedometer in a modern car. one that would have the number, and then the needle pointing to the number as well. specifically what I am looking for is something开发者_JS百科 that looks like this: http://static.howstuffworks.com/gif/vehicle-pictures/2009/honda/fit/5802-062-speedometer-tachometer-480.jpg

how would I go about doing that i.e creating the speedometer and moving the needle.


I guess Open GL is the way to go for u


Not necessarily OpenGL.. It can be done with quite good performance results just by extending some view and writing your own onDraw method.. Especially if scale is fixed and just pointer is moving.. Cheers

0

精彩评论

暂无评论...
验证码 换一张
取 消