private void hideDeleteBox(boolean shrink) {
if (mDeleteBoxVisible) {
mDeleteBoxVisible = false;
if (mDeleteView != null) {
mDeleteBoxView.animate()
.alpha(0)
.setDuration(DELETE_ANIM_DURATION);
mDeleteIconHolder.animate()
.scaleX(shrink ? 0.3f : 1)
.scaleY(shrink ? 0.3f : 1)
.translationYBy(CLOSE_ANIMATION_DISTANCE)
.setDuration(DELETE_ANIM_DURATION)
.setInterpolator(new AccelerateInterpolator())
.setListener(new AnimationFinishedListener() {
@Override
public void onAnimationFinished() {
if (mDeleteView != null) {
mDeleteView.setVisibility(View.GONE);
}
}
});
}
}
}
FloatingView.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:text_converter
作者:
评论列表
文章目录