我想展示将项目视图从“回收者视图”移到状态栏的效果。但是,实际操作不会离开RecyclerView项目区域。
这是我的代码:
fromView.animate()
.x(toView.x)
.y(toView.y)
.setDuration(1000)
.withEndAction {
//to make sure that it arrives,
//but not needed actually these two lines
fromView.x = toView.x
fromView.y = toView.y
}
.start()