layouttransition

LayoutTransition: 2 containers

南笙酒味 提交于 2020-01-06 02:47:08
问题 I'm trying out an official example on LayoutTransition. I've modified it in order to have 2 containers. I add new items to 1'st (top) container with animation and the 2'nd (bottom) container moves down with slide animation, as expected. But when I remove item from 1'st container, the whole 2'nd container goes beneath 1'st container, while 1'st container is shrinking height with animation (while animation is playing last element of 1'st and first element of 2'nd are intersecting). Is there any

RecyclerView: Animate item resize

跟風遠走 提交于 2019-12-20 09:53:43
问题 I have a RecyclerView . Each of its items of the recycler view can be either expanded or not. There can be only one item expanded at the same time. In essence, I'm trying to re-create the history list in lolipop dialier. I have found that using a LayoutTransition on RecyclerView makes it crash. But I have not been able to correctly animate the item view change between both states. I have tried getItemAnimator().setSupportsChangeAnimations(true) in conjunction with notifyItemChanged

RecyclerView: Animate item resize

走远了吗. 提交于 2019-12-02 21:38:39
I have a RecyclerView . Each of its items of the recycler view can be either expanded or not. There can be only one item expanded at the same time. In essence, I'm trying to re-create the history list in lolipop dialier. I have found that using a LayoutTransition on RecyclerView makes it crash . But I have not been able to correctly animate the item view change between both states. I have tried getItemAnimator().setSupportsChangeAnimations(true) in conjunction with notifyItemChanged(getPosition()) but there is two problems: The view is re-created, making the transition quite weird as it fades