像speedmeter android系统中简单的仪器看法? [英] Simple gauge view like speedmeter in android?

查看:75
本文介绍了像speedmeter android系统中简单的仪器看法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有一个简单的仪表视图,我将确定初始值和最终值,并有一个指针来显示特定变量的值。

I want to have a simple gauge view where i will define the start value and the end value and have a pointer to show given variable value.

所以,我可以显示像speedmeter.For比如给定值,如果一个TextView我的值是1300,然后旁边的我想有这个习俗米观看动画这样的TextView的!

So i can show a given value like speedmeter.For example if my the value of a textView is 1300 , then next to the textview i want to have this custom meter view animation like this!

这是可能的吗?任何现有例如code?

It is possible?Any existing example code?

推荐答案

另外一个发现在我博客最近,用它并致力于完善是的这里

Another one i found in a blog recently ,used it and worked perfect is here:

在Git是这里

它有一个压力表图书馆和一些样品进行交互。

It has a gauge library and some samples to interact with.

非常感谢店主埃维莉娜Vrabie ...

Big thanks to the owner Evelina Vrabie...

但它是不工作的XHDPI /很少Android设备的版本(上图4)问题是,在计视图中的文本。下面是截图:<一href="https://dl.dropboxusercontent.com/u/71354817/Screen%20Shot%202014-01-17%20at%203.34.59%20PM.png">https://dl.dropboxusercontent.com/u/71354817/Screen%20Shot%202014-01-17%20at%203.34.59%20PM.png

However it is not working on XHDPI/Few versions of android devices (above 4) Problem is that the text in gauge view. Here is screen shot : https://dl.dropboxusercontent.com/u/71354817/Screen%20Shot%202014-01-17%20at%203.34.59%20PM.png

这篇关于像speedmeter android系统中简单的仪器看法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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