Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

when i use recyclerview,there come something wrong #20

Open
matbird opened this issue Mar 15, 2016 · 2 comments
Open

when i use recyclerview,there come something wrong #20

matbird opened this issue Mar 15, 2016 · 2 comments

Comments

@matbird
Copy link

matbird commented Mar 15, 2016

Have you ever see this exception?
java.lang.IllegalArgumentException: Object class class java.util.ArrayListnot found in mapper
at io.nlopez.smartadapters.builders.DefaultBindableLayoutBuilder.viewType(DefaultBindableLayoutBuilder.java:40)
atio.nlopez.smartadapters.adapters.RecyclerMultiAdapter.getItemViewType(RecyclerMultiAdapter.java:134)

@mrmans0n
Copy link
Owner

Probably you want to use .addAll when populating the list instead of .all.

@matbird
Copy link
Author

matbird commented Mar 16, 2016

Thanks very much, I have already handled this problem. I was so careless when I use "adapter.addItem()" instead of "adapter.additems".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants