本文整理匯總了Java中com.nineoldandroids.animation.Animator.AnimatorListener方法的典型用法代碼示例。如果您正苦於以下問題:Java Animator.AnimatorListener方法的具體用法?Java Animator.AnimatorListener怎麽用?Java Animator.AnimatorListener使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.nineoldandroids.animation.Animator
的用法示例。
在下文中一共展示了Animator.AnimatorListener方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getRevealFinishListener
import com.nineoldandroids.animation.Animator; //導入方法依賴的package包/類
private static Animator.AnimatorListener getRevealFinishListener(RevealAnimator target) {
if (SDK_INT >= 18) {
return new RevealAnimator.RevealFinishedJellyBeanMr2(target);
} else if (SDK_INT >= 14) {
return new RevealAnimator.RevealFinishedIceCreamSandwich(target);
} else {
return new RevealAnimator.RevealFinishedGingerbread(target);
}
}
示例2: play
import com.nineoldandroids.animation.Animator; //導入方法依賴的package包/類
private BaseViewAnimator play() {
animator.setTarget(target);
animator.setDuration(duration)
.setInterpolator(interpolator)
.setStartDelay(delay);
if (callbacks.size() > 0) {
for (Animator.AnimatorListener callback : callbacks) {
animator.addAnimatorListener(callback);
}
}
animator.animate();
return animator;
}
示例3: setListener
import com.nineoldandroids.animation.Animator; //導入方法依賴的package包/類
@Override
public ViewPropertyAnimator setListener(Animator.AnimatorListener listener) {
mListener = listener;
return this;
}
示例4: withListener
import com.nineoldandroids.animation.Animator; //導入方法依賴的package包/類
public AnimationComposer withListener(Animator.AnimatorListener listener) {
callbacks.add(listener);
return this;
}
示例5: setListener
import com.nineoldandroids.animation.Animator; //導入方法依賴的package包/類
/**
* Sets a listener for events in the underlying Animators that run the property
* animations.
*
* @param listener The listener to be called with AnimatorListener events.
* @return This object, allowing calls to methods in this class to be chained.
*/
public abstract ViewPropertyAnimator setListener(Animator.AnimatorListener listener);
示例6: animateAddImpl
import com.nineoldandroids.animation.Animator; //導入方法依賴的package包/類
public abstract void animateAddImpl(Animator.AnimatorListener listener);
示例7: animateRemoveImpl
import com.nineoldandroids.animation.Animator; //導入方法依賴的package包/類
public abstract void animateRemoveImpl(Animator.AnimatorListener listener);