pygmalion69 / gauge Goto Github PK
View Code? Open in Web Editor NEWA Gauge View for Android
License: Apache License 2.0
A Gauge View for Android
License: Apache License 2.0
My app slowed down after adding two gauge views to the same screen. I got rid of the gauges and UI was back to being responsive. Logcat reported skipping frames while I was using the gauges. My app was not skipping frames before the use of the gauges.
Can you please tell me how can I change the color of Gaug's outer rims ?? Its urgent.
Hello,
I'm using USB Serial console for sending serial data for every 500 ms. Now I tried to use gauge view to display the data that I'm sending every 500 ms.
But the app is unfortunately not responding after certain time when I've gauge view added to my app.
May I know the reason please?
Thank you
I am using a Galaxy S6, 5inch and a Tab3, 7inch.
Even when the gauge is enlarged, to fit the same area using percentage, the text size on the Tab3 is massive compared with the S6.
This is true for the upper/lower text and the label text size.
In other words, a label text size of 48 on the S6 is perfect but on the Tab3, it will fill the whole gauge.
Is there a way around this so I can use the same software on multiple devices ?
Pics below, Tab3, S6
Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:22:9-36
is also present at [com.github.Pygmalion69:Gauge:1.5.2] AndroidManifest.xml:12:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:21:5-81:19 to override.
When using portrait layout, I set lowerTextSize
and upperTextSize
to 50dp. Then I add an landscape layout with similar settings in XML. But I find both text are much bigger in landscape layout. I have to reduce from 50 to 30 in order to make them look similar size in portrait layout.
Using com.github.Pygmalion69:Gauge:1.5
How can I change the gauge size... It is full circle right now but I want 270 degree not full 360.
Any suggestions?
HI , I'am getting above error when I implement Gauge dependency in gradle v.7.0.2 but when I remove the dependency it runs successfully.
Tried so many stack overflow solution but can't get it right ,
Thank you in advance
For example, if monitoring a value between -5 to 5, with 10 intervals,
it would show:
-2 -2 -1 -1 0 1 1 2 2
It should go from -5 to 5, not -2 to 2. Also, a fractional display would be nice, at least to 1 or 2 digits after the decimal place.
Thank for your excellent job !
I woud libe to change gauge colors by value at runtime.
By adding in the class something like ?
public void setFaceColor(int c) {
faceColor = c;
};
public void setScaleColor (int c) {
scaleColor = c;
};
public void setneedleColor(int c) {
needleColor = c;
};
Happy Xmas!
Xavier
Thank you very much for the gauge view, it suits well for IoT related projects.
I'm facing an issue setting the max value of the gauge, I want it to be 100 but it always defaults as 1000 even if I change the maxValue attribute.
<de.nitri.gauge.Gauge
android:id="@+id/flow_rate_gauge"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_gravity="center"
android:layout_marginTop="10dp"
gauge:initialValue="30"
gauge:maxValue="100"
gauge:minValue="0"
gauge:totalNicks="120"
gauge:valuePerNick="1" />
What am I missing here?
can u add method to set text Programatically rather than in XML Layout
First of all, really thanks for this library. I'm also using it in my IoT project and it fits perfectly. However, there's a use case where I need to set the max value programmatically and couldn't find a way to do that. I would like to know if it's a simple feature to be implemented or it requires too much effort.
could you please add some comments in the code, showing how to control the needle responsiveness (if it's at all possible) or add some controls to change the arrow speed?
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.