Skip to content

Commit

Permalink
Merge pull request #1 from fredpedersen/patch-1
Browse files Browse the repository at this point in the history
Add compatibility with material 1.1.0+ lib
  • Loading branch information
javiersantos authored Oct 30, 2020
2 parents f15666c + bc17665 commit e6d6285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private void readAttributes(AttributeSet attrs) {
.getColor(R.styleable.FitChart_valueStrokeColor, valueStrokeColor);
backStrokeColor = attributes
.getColor(R.styleable.FitChart_backStrokeColor, backStrokeColor);
int attrAnimationMode = attributes.getInteger(R.styleable.FitChart_animationMode, ANIMATION_MODE_LINEAR);
int attrAnimationMode = attributes.getInteger(R.styleable.FitChart_animationMethod, ANIMATION_MODE_LINEAR);
if (attrAnimationMode == ANIMATION_MODE_LINEAR) {
animationMode = AnimationMode.LINEAR;
} else {
Expand Down
2 changes: 1 addition & 1 deletion FitChart/src/main/res/values/attributes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<attr name="strokeSize" format="dimension|reference" />
<attr name="valueStrokeColor" format="color|reference" />
<attr name="backStrokeColor" format="color|reference" />
<attr name="animationMode">
<attr name="animationMethod">
<enum name="linear" value="0" />
<enum name="overdraw" value="1" />
</attr>
Expand Down

0 comments on commit e6d6285

Please sign in to comment.