anvil-ui/anvil

RecyclerView add / remove items

FunnyDevs opened this issue · 1 comments

Hi! I'm trying RenderableRecyclerViewAdapter.withItems to create the adapter for recyclerview. I have declared an ArrayList as adapter items, and it works. I am not able to remove items from recyclerview: i have tried to remove an item from the arraylist but there is no result.

Ok, i have found my problem: i populate list inside view method instead of onAttachedToWindow.