androidviewandroid-animationandroid-custom-viewgauge

Simple gauge view like speedmeter in 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.

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?


Solution

  • 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.