Reputation: 75
Hello currently I am working on android and I am stuck to implement the structure picture above.
I need to add and delete the CardView in the list. I have tried it with RecyclerView and also used NestedScrollView to avoid double scroll, but I faced a problem that the animation is not available anymore when deletion because when deleting an item, the size of the recyclerView is forcibly reduced by NestedScrollView, so the animation cannot be operated normally.
So what I want to know is if there is any way to implement it without NestedScrollView
If not, how can I restore the animation working?
Upvotes: -2
Views: 48
Reputation: 1018
NestedScrollView
in this case is unnecessary. You'd better use RecyclerView
only with multiple view item types
Upvotes: 0