Giter Site home page Giter Site logo

cn1circleprogress's People

Contributors

chen-fishbein avatar jegesh avatar shai-almog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cn1circleprogress's Issues

When ArcProgress is 0, diagonal lines show on iOS

Hello,

I noticed that when the ArcProgress is set to 0 on iOS, diagonal lines show near the starting point. Sometimes, those lines don't show on the first load, but after reopening the app, the lines will show. I have not been able to replicate this on the Simulator or Android.

IMG_0052

Lianna suggested that I use this as a workaround:

protected String formattedValue(int value) {
if(value == 1 && fakeZero) value = 0;
return super.formattedValue(value);
}

I actually got around this by extending ArcProgress and overriding the following methods so that 1% should be displayed on the ArcProgress, but the text should say 0%:

@Override
    public void setProgress(int value) {
        if (value == 0)
            value = 1;
        super.setProgress(value);
    }

    @Override
    protected String formattedValue(int value) {
            if (value == 1)
                value = 0;

        return super.formattedValue(value);
    }

Once there's at least 1% progress, the lines don't show anymore.

Arc progress drawing is defective

The start and end of the arc graph are connected to each other, so that it crossed the circle in the middle where the progress value is.
I notice this since the last update of cn1 libs and jars.
This occurs at least on iOS and Android devices, and in the simulator.

iOS app crashes when setting progress to 0

Hi,

@shannah : As discussed on stackoverflow:

the CN1 app using CircleProgress will crash, when using setProgress with the value "0".
So:

CircleProgress cp = new CircleProgress();
cp.setProgress( 0 );

is causing the app to crash.

Best regards

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.