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.
public class TopListViewAdapter extensions ArrayList<TopElement>implementations ListAdapter {
publicTopListViewAdapter (Context context, ArrayList<TopElement>items) {
super(context, R.layout.top_listview, items);
}
}
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
© 2024 OneMinuteCode. All rights reserved.