9
9
import android .animation .AnimatorSet ;
10
10
import android .animation .ObjectAnimator ;
11
11
import android .animation .ValueAnimator ;
12
+ import android .annotation .SuppressLint ;
12
13
import android .graphics .Path ;
13
14
14
15
import me .zhanghai .android .materialprogressbar .internal .ObjectAnimatorCompat ;
@@ -137,18 +138,21 @@ public static Animator createIndeterminateHorizontalRect2(Object target) {
137
138
*/
138
139
public static Animator createIndeterminate (Object target ) {
139
140
141
+ @ SuppressLint ("ObjectAnimatorBinding" )
140
142
ObjectAnimator trimPathStartAnimator = ObjectAnimator .ofFloat (target , "trimPathStart" , 0 ,
141
143
0.75f );
142
144
trimPathStartAnimator .setDuration (1333 );
143
145
trimPathStartAnimator .setInterpolator (Interpolators .TRIM_PATH_START .INSTANCE );
144
146
trimPathStartAnimator .setRepeatCount (ValueAnimator .INFINITE );
145
147
148
+ @ SuppressLint ("ObjectAnimatorBinding" )
146
149
ObjectAnimator trimPathEndAnimator = ObjectAnimator .ofFloat (target , "trimPathEnd" , 0 ,
147
150
0.75f );
148
151
trimPathEndAnimator .setDuration (1333 );
149
152
trimPathEndAnimator .setInterpolator (Interpolators .TRIM_PATH_END .INSTANCE );
150
153
trimPathEndAnimator .setRepeatCount (ValueAnimator .INFINITE );
151
154
155
+ @ SuppressLint ("ObjectAnimatorBinding" )
152
156
ObjectAnimator trimPathOffsetAnimator = ObjectAnimator .ofFloat (target , "trimPathOffset" , 0 ,
153
157
0.25f );
154
158
trimPathOffsetAnimator .setDuration (1333 );
@@ -169,6 +173,7 @@ public static Animator createIndeterminate(Object target) {
169
173
* @return An Animator object that is set up to behave the same as the its native counterpart.
170
174
*/
171
175
public static Animator createIndeterminateRotation (Object target ) {
176
+ @ SuppressLint ("ObjectAnimatorBinding" )
172
177
ObjectAnimator rotationAnimator = ObjectAnimator .ofFloat (target , "rotation" , 0 , 720 );
173
178
rotationAnimator .setDuration (6665 );
174
179
rotationAnimator .setInterpolator (Interpolators .LINEAR .INSTANCE );
0 commit comments