private void closeAnimation(View[] views) {
isOpen = false;
if (VersionHelper.isAtLeast()) {
/**
*ObjectAnimator
* */
for (int i = 0; i < views.length; i++) {
objectAnimator = ObjectAnimator.ofFloat(views[i], "translationY", i * 250, 0);
objectAnimator.setStartDelay(i * 150);
objectAnimator.setDuration(500);
objectAnimator.setInterpolator(new BounceInterpolator());
objectAnimator.start();
}
} else {
/**
*ViewCompat
* */
for (int i = 0; i < views.length; i++) {
ViewCompat.animate(views[i]).setDuration(500).translationY(0).start();
}
}
fabReLayout.setVisibility(View.GONE);
}
MainActivity.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:GankWL
作者:
评论列表
文章目录