Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/328.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何暂停圆形显示动画_Java_Android_Material Design - Fatal编程技术网

Java 如何暂停圆形显示动画

Java 如何暂停圆形显示动画,java,android,material-design,Java,Android,Material Design,我正在使用CircularVealLibrary来显示我的标题布局。但是我想要的是能够在中途停止动画。如何做到这一点?我使用下面的代码 int x = v.getRight(), y = v.getBottom(), startRadius = 0; int endRadius = (int) Math.hypot(v.getWidth(), v.getHeight()); SupportAnimator animator = ViewAnimationUtils.createCircular

我正在使用CircularVealLibrary来显示我的标题布局。但是我想要的是能够在中途停止动画。如何做到这一点?我使用下面的代码

int x = v.getRight(), y = v.getBottom(), startRadius = 0;
int endRadius = (int) Math.hypot(v.getWidth(), v.getHeight());

SupportAnimator animator = ViewAnimationUtils.createCircularReveal(v, x, y, startRadius, endRadius);
animator.start();
我明白了

但我想中途暂停动画