我想在RecyclerView中缩放聚焦视图。当视图变为焦点时:
Animation scaleUp = new ScaleAnimation(1, 1.1f, 1, 1.1f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
scaleUp.setInterpolator(new DecelerateInterpolator());
scaleUp.setDuration(400);
scaleUp.setFillAfter(true);
focusedView.startAnimation(scaleUp);
我还想保留其邻居的边距,因此缩放后的视图不会与它们重叠。有没有办法告诉RecyclerView视图已缩放,因此应该重新计算边距?