本文整理匯總了Java中android.animation.AnimatorSet.Builder方法的典型用法代碼示例。如果您正苦於以下問題:Java AnimatorSet.Builder方法的具體用法?Java AnimatorSet.Builder怎麽用?Java AnimatorSet.Builder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.animation.AnimatorSet
的用法示例。
在下文中一共展示了AnimatorSet.Builder方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: buildSetForBodies
import android.animation.AnimatorSet; //導入方法依賴的package包/類
private AnimatorSet buildSetForBodies(List<CustomAnimationBody> animations, View view) {
final AnimatorSet animatorSet = new AnimatorSet();
if (animations.size() > 0) {
final Iterator<CustomAnimationBody> iterator = animations.iterator();
final AnimatorSet.Builder builder =
animatorSet.play(iterator.next().createFor(view));
while (iterator.hasNext()) {
builder.with(iterator.next().createFor(view));
}
}
return animatorSet;
}
示例2: runMenuItemEnterAnimations
import android.animation.AnimatorSet; //導入方法依賴的package包/類
private void runMenuItemEnterAnimations() {
mMenuItemEnterAnimator = new AnimatorSet();
AnimatorSet.Builder builder = null;
ViewGroup list = mPopup.getListView();
for (int i = 0; i < list.getChildCount(); i++) {
View view = list.getChildAt(i);
Object animatorObject = view.getTag(R.id.menu_item_enter_anim_id);
if (animatorObject != null) {
if (builder == null) {
builder = mMenuItemEnterAnimator.play((Animator) animatorObject);
} else {
builder.with((Animator) animatorObject);
}
}
}
mMenuItemEnterAnimator.addListener(mAnimationHistogramRecorder);
mMenuItemEnterAnimator.start();
}