本文整理汇总了Java中android.animation.AnimatorSet.cancel方法的典型用法代码示例。如果您正苦于以下问题:Java AnimatorSet.cancel方法的具体用法?Java AnimatorSet.cancel怎么用?Java AnimatorSet.cancel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.animation.AnimatorSet
的用法示例。
在下文中一共展示了AnimatorSet.cancel方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: cancel
import android.animation.AnimatorSet; //导入方法依赖的package包/类
/**
* cancel animator
*
* @return
*/
public UDAnimatorSet cancel() {
final AnimatorSet animatorSet = getAnimatorSet();
if (animatorSet != null) {
if (animatorSet.isStarted()) {
animatorSet.cancel();
animatorSet.setupEndValues();
}
}
if (mTarget != null) {
mTarget.cancelAnimation();
}
return this;
}
示例2: setRipple
import android.animation.AnimatorSet; //导入方法依赖的package包/类
public void setRipple(boolean b) {
rippleSet = b;
if(height > width){
supportPixle = height;
}else{
supportPixle = width;
}
if(rippleSet){
Set = new AnimatorSet();
Set.setStartDelay(0);
}else{
if(Set != null) {
Set.cancel();
Set.setStartDelay(0);
Set = null;
}
}
}
示例3: setRipple
import android.animation.AnimatorSet; //导入方法依赖的package包/类
public void setRipple(boolean b) {
rippleSet = b;
if(height > width){
supportPixle = height;
}else{
supportPixle = width;
}
if(rippleSet){
Set = new AnimatorSet();
Set.setStartDelay(0);
mBitmapPaint = new Paint();
mBitmapPaint.setAntiAlias(true);
mBitmapPaint.setColor(0xFFFFFFFF);
}else{
if(Set != null) {
Set.cancel();
Set.setStartDelay(0);
Set = null;
}
mBitmapPaint = null;
}
}
示例4: endAnimations
import android.animation.AnimatorSet; //导入方法依赖的package包/类
@Override
public void endAnimations() {
super.endAnimations();
for (AnimatorSet animatorSet : likeAnimationsMap.values()) {
animatorSet.cancel();
}
}
示例5: cancelAnimator
import android.animation.AnimatorSet; //导入方法依赖的package包/类
private AnimatorSet cancelAnimator(AnimatorSet animator) {
if (animator != null) {
animator.removeAllListeners();
animator.cancel();
}
return null;
}
示例6: endAnimations
import android.animation.AnimatorSet; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
public void endAnimations() {
super.endAnimations();
for (final AnimatorSet animatorSet : mCustomAnimationsMap.values()) {
animatorSet.cancel();
}
}
示例7: endAnimations
import android.animation.AnimatorSet; //导入方法依赖的package包/类
@Override
public void endAnimations() {
super.endAnimations();
for (AnimatorSet animatorSet : likeAnimationsMap.values()) {
animatorSet.cancel();
}
}