bilthon / android-speedometer Goto Github PK
View Code? Open in Web Editor NEWAndroid custom view that displays a simple Speedometer
Android custom view that displays a simple Speedometer
I'm trying to make Signal meter with dBm value. How can I change the start and the end value. It shoule start with -94 dBm (very bad signal) and end at 0 dBm (excellent signal strength).
Hi @bilthon !! great job you did!! i really appreciate.
But i would like to change text color.
I can help by adding another attribute for that.
@bilthon In the XML Preview, when I set the XML Attribute of Speedometer View as android:layout_width
and android:layout_height
to wrap_content
, it shows that the view is inflating in a squared manner (means the width and height of view are same, which is evident in the code on Speedometer.java
's onMeasure ()
method.
And, I guess the Speedometer Gauge is adjusting on the basis of Width and Height assigned.
If I want to increase the Size of Gauge, how can it be done?
Hey, your work on this speedometer looks great and I'd love to use in some apps with the OpenXC platform (http://openxcplatform.com/) but there's currently no open source license attached to your code so it's difficult for me to use. Would you mind adding one? BSD or MIT would be awesome, if you're OK with either.
Hi, Bilthon.
Thank you very much for this project. I try using you speedometer for my project. Here is a snapshot of my project view. The background color and the icon (refresh button like icon) are given onto a surfaceview. The button is actually a bitmap by far and doing nothing. I am trying to monitor
the button press via coordinate measuring in onTouchEvent. So in this case, there was a draw() to show all these.
I just put your speedometer.java and its listener into my project. Of course, the attr.xml is included.
I declare a private object of speedo in my surfaceview and give the findviewById() into the draw(). However, it is not visible as shown by the snapshot. I cannot find out why at this moment. This is the second week since I know android development. A little bit difficulties to handle the problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.