本文整理匯總了Java中android.support.v4.view.ViewPropertyAnimatorCompat.setStartDelay方法的典型用法代碼示例。如果您正苦於以下問題:Java ViewPropertyAnimatorCompat.setStartDelay方法的具體用法?Java ViewPropertyAnimatorCompat.setStartDelay怎麽用?Java ViewPropertyAnimatorCompat.setStartDelay使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.support.v4.view.ViewPropertyAnimatorCompat
的用法示例。
在下文中一共展示了ViewPropertyAnimatorCompat.setStartDelay方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: playSequentially
import android.support.v4.view.ViewPropertyAnimatorCompat; //導入方法依賴的package包/類
public ViewPropertyAnimatorCompatSet playSequentially(ViewPropertyAnimatorCompat viewpropertyanimatorcompat, ViewPropertyAnimatorCompat viewpropertyanimatorcompat1)
{
mAnimators.add(viewpropertyanimatorcompat);
viewpropertyanimatorcompat1.setStartDelay(viewpropertyanimatorcompat.getDuration());
mAnimators.add(viewpropertyanimatorcompat1);
return this;
}
示例2: createAnimatorForNewHolder
import android.support.v4.view.ViewPropertyAnimatorCompat; //導入方法依賴的package包/類
private ViewPropertyAnimatorCompat createAnimatorForNewHolder(
@Nonnull final View newView,
@Nonnull final SimpleItemAnimator.EventParam param) {
final ViewPropertyAnimatorCompat base = ViewCompat.animate(newView);
// startタイミングはObservableでは管理できない…
if(!parent.isChangeEventMix()) {
base.setStartDelay(parent.getChangeDuration());
}
return parent.getChangeEventAnimationForNewView().f(base, param);
}
示例3: playSequentially
import android.support.v4.view.ViewPropertyAnimatorCompat; //導入方法依賴的package包/類
public ViewPropertyAnimatorCompatSet playSequentially(ViewPropertyAnimatorCompat anim1, ViewPropertyAnimatorCompat anim2) {
this.mAnimators.add(anim1);
anim2.setStartDelay(anim1.getDuration());
this.mAnimators.add(anim2);
return this;
}