static void hideMenu(ViewGroup viewGroup, Point touchPoint) {
List<Animator> animList = new ArrayList<>();
for (int i = viewGroup.getChildCount() - 1; i >= 0; i--) {
animList.add(createHideItemAnimator(viewGroup.getChildAt(i), touchPoint));
}
AnimatorSet animSet = new AnimatorSet();
animSet.setDuration(ANIM_DURATION);
animSet.setInterpolator(new AnticipateInterpolator());
animSet.playTogether(animList);
animSet.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
}
});
animSet.start();
}
AnimatorUtils.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:AndroidArcMenu
作者:
评论列表
文章目录