florent37/Carpaccio

Edit recyclerview items

Closed this issue · 4 comments

Hello! How can access list mapped to Carpaccio and notifiydatasetchanged??? Thanks

Hi, you can use carpaccio.getMappedList("user")if you used mapList("user")
I'm doin the wiki, so don't hesitate to send me questions, if it's implemented I'll put the answer here, else I'll implement it

if you want to notify dataset changed `carpaccio.getAdapter("user").notifyDataSetChanged()``

Ok, thanks! Another problem: i have edited an user of an arraylist that i have passed to maplist. Before doing carpaccio.getAdapter("user").notifyDataSetChanged(), i have to set the edited user in the correct position of the list. Is there a method to do that o i have to cycling entire list and do a comparison by POJO attribute to find the correct position? Thanks

You can use list.indexOf
Le 4 août 2015 09:07, "kegita" notifications@github.com a écrit :

Ok, thanks! Another problem: i have edited an user of an arraylist that i
have passed to maplist. Before doing
carpaccio.getAdapter("user").notifyDataSetChanged(), i have to set the
edited user in the correct position of the list. Is there a method to do
that o i have to cycling entire list and do a comparison by POJO attribute
to find the correct position? Thanks


Reply to this email directly or view it on GitHub
#5 (comment).