Skip to content

Commit

Permalink
[Fix] Fix for Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Apr 11, 2017
1 parent b5da5b3 commit 5a1cd83
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.graphics.Path;

import me.zhanghai.android.materialprogressbar.internal.ObjectAnimatorCompat;
Expand Down Expand Up @@ -137,18 +138,21 @@ public static Animator createIndeterminateHorizontalRect2(Object target) {
*/
public static Animator createIndeterminate(Object target) {

@SuppressLint("ObjectAnimatorBinding")
ObjectAnimator trimPathStartAnimator = ObjectAnimator.ofFloat(target, "trimPathStart", 0,
0.75f);
trimPathStartAnimator.setDuration(1333);
trimPathStartAnimator.setInterpolator(Interpolators.TRIM_PATH_START.INSTANCE);
trimPathStartAnimator.setRepeatCount(ValueAnimator.INFINITE);

@SuppressLint("ObjectAnimatorBinding")
ObjectAnimator trimPathEndAnimator = ObjectAnimator.ofFloat(target, "trimPathEnd", 0,
0.75f);
trimPathEndAnimator.setDuration(1333);
trimPathEndAnimator.setInterpolator(Interpolators.TRIM_PATH_END.INSTANCE);
trimPathEndAnimator.setRepeatCount(ValueAnimator.INFINITE);

@SuppressLint("ObjectAnimatorBinding")
ObjectAnimator trimPathOffsetAnimator = ObjectAnimator.ofFloat(target, "trimPathOffset", 0,
0.25f);
trimPathOffsetAnimator.setDuration(1333);
Expand All @@ -169,6 +173,7 @@ public static Animator createIndeterminate(Object target) {
* @return An Animator object that is set up to behave the same as the its native counterpart.
*/
public static Animator createIndeterminateRotation(Object target) {
@SuppressLint("ObjectAnimatorBinding")
ObjectAnimator rotationAnimator = ObjectAnimator.ofFloat(target, "rotation", 0, 720);
rotationAnimator.setDuration(6665);
rotationAnimator.setInterpolator(Interpolators.LINEAR.INSTANCE);
Expand Down

0 comments on commit 5a1cd83

Please sign in to comment.