File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
library/src/main/java/com/wang/avi Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -327,13 +327,20 @@ public void setVisibility(int v) {
327
327
}
328
328
}
329
329
330
+ @ Override
331
+ protected void onAttachedToWindow () {
332
+ super .onAttachedToWindow ();
333
+ if (mHasAnimation ) {
334
+ mIndicatorController .setAnimationStatus (BaseIndicatorController .AnimStatus .START );
335
+ }
336
+ }
337
+
330
338
@ Override
331
339
protected void onDetachedFromWindow () {
332
340
super .onDetachedFromWindow ();
333
341
mIndicatorController .setAnimationStatus (BaseIndicatorController .AnimStatus .CANCEL );
334
342
}
335
343
336
-
337
344
void drawIndicator (Canvas canvas ){
338
345
mIndicatorController .draw (canvas ,mPaint );
339
346
}
@@ -345,6 +352,4 @@ void applyAnimation(){
345
352
private int dp2px (int dpValue ) {
346
353
return (int ) getContext ().getResources ().getDisplayMetrics ().density * dpValue ;
347
354
}
348
-
349
-
350
355
}
You can’t perform that action at this time.
0 commit comments