New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
listview set a wrong adaptor #20
Comments
Hi, @luoguibin , can you provide some more code. Specifically i want to look at your FriendsAdapter |
Having the same issue. I just wanted to try the sample before implementing it in my own project. It's giving me the above mentioned error by @luoguibin |
Hi, @andy1729! Are you using |
Hello, @warko-san sorry for late reply, I am using ListView. Should I use RecyclerView? |
I am also facing the same problem. List view adapter showing error |
is there anyway to use recyclerAdapter? |
Say goodbye to Android, say hello to H5~ |
Java code(FriendsActivity):
friends.setAdapter(new FriendsAdapter(this, Utils.friends, settings));
Here are the errors:
Error:(36, 16) error: no suitable method found for setAdapter(FriendsActivity.FriendsAdapter)
method AdapterView.setAdapter(ListAdapter) is not applicable
(argument mismatch; FriendsActivity.FriendsAdapter cannot be converted to ListAdapter)
method AbsListView.setAdapter(ListAdapter) is not applicable
(argument mismatch; FriendsActivity.FriendsAdapter cannot be converted to ListAdapter)
method ListView.setAdapter(ListAdapter) is not applicable
(argument mismatch; FriendsActivity.FriendsAdapter cannot be converted to ListAdapter)
The text was updated successfully, but these errors were encountered: