Giter Club home page Giter Club logo

gauge's People

Contributors

pygmalion69 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gauge's Issues

Slow UI With 2 gauges.

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.

Outer Rim Color

Can you please tell me how can I change the color of Gaug's outer rims ?? Its urgent.

App getting crashed

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

TextSize on different devices

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

screenshot_2018-08-09-22-46-28

screenshot_20180807-000357 1

The addiction gives an error. Can you help me?

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.

Different size of lowerText and upperText in landscape layout

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

Change gauze size

How can I change the gauge size... It is full circle right now but I want 270 degree not full 360.
Any suggestions?

Gauges doesn't support negative lower range values

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.

Add capability to set colors programmatically

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

Max value of the gauge doesn't change

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?

Set Max Value Programmatically

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.

gauge responsiveness

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.