yongwoo
yongwoo

Reputation: 75

Recommend me android best layout structure for this

structure to implement

Hello currently I am working on android and I am stuck to implement the structure picture above.

  1. 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.

  2. So what I want to know is if there is any way to implement it without NestedScrollView

  3. If not, how can I restore the animation working?

Upvotes: -2

Views: 48

Answers (1)

Hai Hack
Hai Hack

Reputation: 1018

NestedScrollView in this case is unnecessary. You'd better use RecyclerView only with multiple view item types

Upvotes: 0

Related Questions