Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple gauge view like speedmeter in android?

Tags:

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.

enter image description here

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!

It is possible? Any existing example code?

like image 775
oikonomopo Avatar asked Sep 23 '12 09:09

oikonomopo


2 Answers

Another one i found at Evelina Vrabie's blog, used it and worked perfect!

Look at Evelina Vrabie's GitHub. It has a gauge library and some samples to interact with.

Big thanks to the owner Evelina Vrabie!


enter image description here

However it is not working on XHDPI/Few versions of android devices (above 4). Problem is the text in gauge view.

like image 162
oikonomopo Avatar answered Nov 18 '22 00:11

oikonomopo


For anyone looking for simple gauge view I made a library that you can clone and use/modify for your needs.

CustomGauge

enter image description here

like image 41
pkleczko Avatar answered Nov 17 '22 23:11

pkleczko