Error Handling Cannot resolve method

Asked 2 years ago, Updated 2 years ago, 48 views

I am a beginner in Android development.
The following code will cause an image-like error.

super(context, R.layout.top_listview, items);

I think I should correct the part of , but what should I do?
I would appreciate it if you could give me some advice.

Enter a description of the image here

public class TopListViewAdapter extensions ArrayList<TopElement>implementations ListAdapter {
    publicTopListViewAdapter (Context context, ArrayList<TopElement>items) {
        super(context, R.layout.top_listview, items);
    }
}

android java

2022-09-30 20:34

1 Answers

As far as the constructor of the document is concerned, isn't it ArrayAdapter instead of LisAdapter?

http://developer.android.com/reference/android/widget/ArrayAdapter.html


2022-09-30 20:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.