Circle Progress Library for Codename One apps
Java
Latest commit a946f39 Mar 29, 2016 @chen-fishbein Update README.md
Permalink
Failed to load latest commit information.
CN1CircleProgress
.gitignore
README.md
image1.png

README.md

CN1CircleProgress

Circle Progress Library for Codename One apps inspired from https://github.com/lzyzsd/CircleProgress

alt tag

Sample Code:

    Form hi = new Form("Circle Progress");
    hi.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
    final CircleProgress p = new CircleProgress();
    p.setProgress(100);
    p.setClockwise(true);
    p.setStartAngle(CircleProgress.START_9_OCLOCK);
    hi.add(p);

    final ArcProgress p2 = new ArcProgress();
    p2.setProgress(70);
    hi.add(p2);

    final CircleFilledProgress p3 = new CircleFilledProgress();
    p3.setProgress(70);
    hi.add(p3);

    Slider slider = new Slider();
    slider.setEditable(true);
    slider.addDataChangedListener(new DataChangedListener() {

        @Override
        public void dataChanged(int type, int index) {
            p.setProgress(index);
            p2.setProgress(index);
            p3.setProgress(index);
        }
    });
    hi.add(slider);

    hi.show();