Giter Club home page Giter Club logo

material-progressview's Issues

Crash occuring when calling setEndColor without calling setTrackWidth beforehand

Hello,

A crash occurs when setting the color without calling setTrackWidth beforehand.

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: ca.etsmtl.etsmobile, PID: 30545
                  java.lang.NullPointerException: Attempt to read from field 'float android.graphics.RectF.left' on a null object reference
                      at com.moos.library.CircleProgressView.setStartColor(CircleProgressView.java:456)
                      at ca.etsmtl.etsmobile.presentation.gradesdetails.EvaluationHeaderItem$bind$$inlined$with$lambda$1.onCircleProgressUpdate(EvaluationHeaderItem.kt:89)
                      at com.moos.library.CircleProgressView$2.onAnimationUpdate(CircleProgressView.java:615)
                      at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1522)
                      at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:987)
                      at android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:654)
                      at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:617)
                      at android.animation.ValueAnimator.start(ValueAnimator.java:1046)
                      at android.animation.ValueAnimator.start(ValueAnimator.java:1065)
                      at android.animation.ObjectAnimator.start(ObjectAnimator.java:852)
                      at com.moos.library.CircleProgressView.startProgressAnimation(CircleProgressView.java:645)

Track Width

When Ever I set Track width with layout height it doesn't match with that height. Can u help me out.

Beyond 100%

Hi ! i would like to know if its possible to go beyond 100%

I'm working with some "goal x result" app and it may be possible to go beyond 100% like:

Goal - 1500 steps
Steps - 1900 steps
% - 126%

CircleProgressView初始化的时候,设置isGraduated=true,无法改变样式

需求:想要使用作者中间镂空的圆环样式;
下载demo,看到作者是在Swicth中通过
//------代码-------
case R.id.csc_isGraduated:
if (isChecked){
//在这里改变样式
circleProgressView.setGraduatedEnabled(true);
}else {
circleProgressView.setGraduatedEnabled(false);
}
break;

但是我把 circleProgressView.setGraduatedEnabled(true); 添加到初始化的时候,样式无法改变

Multiple lines in logcat

Hello,

The library prints the line "E/Moos-Progress-View: circleBroken>>>>>>no" too many times in the logcat. Can the log be removed?

image

Remove Text Space When Hidden

maxthonsnap20180924123416

When the progress text is hidden, the space reserved for the progress text is still there. When the text is hidden, the space should not be there.

This is a great library and I love that it is maintained, thanks!

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.