I need a working example of an application that uses an expandableListView. I have no idea how to set data in it. I have tried with the new ArrayAdapter(…). But I can’t figure out how to create the correct parameters.
Thanks in advance!
PS: I’ve used some code already but it needs some kind of resource out of the R, R.layout.simple_list_1. It’s not declared anywhere but still most of the people seem to have it?
The API demos are a great source for these basic examples
That is a reference to an built-in XML layout document that is part of the Android OS. Use
android.R.layout.simple_list_item_1if you cannot resolve it.