本文整理匯總了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();
}
}