|
@@ -143,9 +143,11 @@ public class ScalableImageView extends AppCompatImageView implements IScalable {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void stopTranslateAnimation() {
|
|
public void stopTranslateAnimation() {
|
|
|
- setVisibility(INVISIBLE);
|
|
|
|
|
|
|
+ // 要先清除动画,否则setVisibility不起作用
|
|
|
|
|
+ clearAnimation();
|
|
|
if (animation != null) {
|
|
if (animation != null) {
|
|
|
animation.cancel();
|
|
animation.cancel();
|
|
|
}
|
|
}
|
|
|
|
|
+ setVisibility(INVISIBLE);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|