我正在使用 ObjectAnimator 为谷歌地图中的标记设置动画,但我想重用 ObjectAnimator 或在收到新位置时继续动画我使用它就像
public void onLocationUpdate(LatLong latLng)
{
ObjectAnimator animator =
ObjectAnimator.ofObject(marker, property, typeEvaluator,latLng);
animator.setDuration(1000);
animator.setInterpolator(new LinearInterpolator());
animator.setStartDelay(0);
animator.start();
animator.addListener(animatorEndListener);
}
我以 1 秒的间隔调用此方法