Closed jiezongnewstar closed 4 years ago
UpDownStackAnimatorAdapter 类 ,17行 ObjectAnimator oa = ObjectAnimator.ofFloat(itemView, View.Y, itemView.getY(), mCardStackView.getChildAt(0).getY()+itemView.getY()); // +itemView.getY() 增加这个高度:240 / 480 34行,增加一个判断 } else if (i < mCardStackView.getSelectPosition()) { ObjectAnimator oAnim; //此处修改 第三个卡片 点击 2级卡片移动问题 if(position != 2){ oAnim = ObjectAnimator.ofFloat(child, View.Y, child.getY(), mCardStackView.getChildAt(0).getY()); mSet.play(oAnim); } } else { ObjectAnimator oAnim = ObjectAnimator.ofFloat(child, View.Y, child.getY(), mCardStackView.getShowHeight()); mSet.play(oAnim); }
谢谢
如题,如何在滑动的时候不让重叠,因为我的布局加了阴影效果,当滑动重叠的时候,阴影也会重叠,视觉效果就会改变。