Skip to content
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

Closed
luoguibin opened this issue Sep 20, 2016 · 7 comments
Closed

listview set a wrong adaptor #20

luoguibin opened this issue Sep 20, 2016 · 7 comments

Comments

@luoguibin
Copy link

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)

@TeeRawk
Copy link

TeeRawk commented Sep 29, 2016

Hi, @luoguibin , can you provide some more code. Specifically i want to look at your FriendsAdapter

@Ujjawal-Anand
Copy link

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

@warko-san
Copy link
Contributor

Hi, @andy1729! Are you using ListView or RecyclerView?

@Ujjawal-Anand
Copy link

Hello, @warko-san sorry for late reply, I am using ListView. Should I use RecyclerView?

@val-raman
Copy link

I am also facing the same problem. List view adapter showing error

@ghost
Copy link

ghost commented Sep 17, 2018

is there anyway to use recyclerAdapter?

@luoguibin
Copy link
Author

Say goodbye to Android, say hello to H5~

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

No branches or pull requests

5 participants