chen-fishbein / cn1circleprogress Goto Github PK
View Code? Open in Web Editor NEWCircle Progress Library for Codename One apps
Circle Progress Library for Codename One apps
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.
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.
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.
Can you clarify which license this is available under?
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
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.