本文整理汇总了Java中android.animation.ValueAnimator.removeAllUpdateListeners方法的典型用法代码示例。如果您正苦于以下问题:Java ValueAnimator.removeAllUpdateListeners方法的具体用法?Java ValueAnimator.removeAllUpdateListeners怎么用?Java ValueAnimator.removeAllUpdateListeners使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.animation.ValueAnimator
的用法示例。
在下文中一共展示了ValueAnimator.removeAllUpdateListeners方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stopAnim
import android.animation.ValueAnimator; //导入方法依赖的package包/类
public void stopAnim() {
if (mAnimators != null && mIsStarted) {
mIsStarted = false;
for (ValueAnimator animator : mAnimators) {
if (animator != null /*&& animator.isStarted()*/) {
animator.removeAllUpdateListeners();
animator.end();
}
}
scaleFloats = new float[]{1f, 1f, 1f};
}
setIndicatorColor(normalColor);
}
示例2: stop
import android.animation.ValueAnimator; //导入方法依赖的package包/类
@Override
public void stop() {
if (animators != null) {
for (ValueAnimator animator : animators.keySet()) {
if (animator != null && animator.isStarted()) {
animator.removeAllUpdateListeners();
animator.end();
}
}
}
}
示例3: stopAnim
import android.animation.ValueAnimator; //导入方法依赖的package包/类
public void stopAnim() {
if (mAnimators != null) {
for (ValueAnimator animator : mAnimators) {
if (animator != null && animator.isStarted()) {
animator.removeAllUpdateListeners();
animator.end();
}
}
}
setIndicatorColor(normalColor);
}
示例4: clearValueAnimator
import android.animation.ValueAnimator; //导入方法依赖的package包/类
public static void clearValueAnimator(ValueAnimator animator) {
if (animator != null) {
animator.removeAllListeners();
animator.removeAllUpdateListeners();
if (Build.VERSION.SDK_INT >= 19) {
animator.pause();
}
animator.cancel();
}
}
示例5: stopAnimators
import android.animation.ValueAnimator; //导入方法依赖的package包/类
private void stopAnimators() {
if (mAnimators!=null){
for (ValueAnimator animator : mAnimators) {
if (animator != null && animator.isStarted()) {
animator.removeAllUpdateListeners();
animator.end();
}
}
}
}
示例6: stopAnimators
import android.animation.ValueAnimator; //导入方法依赖的package包/类
private void stopAnimators() {
if (mAnimators != null) {
for (ValueAnimator animator : mAnimators) {
if (animator != null && animator.isStarted()) {
animator.removeAllUpdateListeners();
animator.end();
}
}
}
}