/**
* 第一张卡片滑出时,剩余卡片上浮
* @param position
*/
private void makeUnderViewReplace(int position) {
CardView underSlideView = slideViewMap.get(position);
if (underSlideView != null) {
ValueAnimator animator = ValueAnimator.ofFloat(percent, 1);
animator.setTarget(underSlideView);
animator.setDuration(ANIM_DURATION);
animator.setInterpolator(new AnticipateOvershootInterpolator());
animator.addUpdateListener(animation -> {
float curPercent = (float) animation.getAnimatedValue();
makeUnderViewInvalidate(position, curPercent);
});
animator.start();
}
}
CardGroup.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:CardsView
作者:
评论列表
文章目录