problem with ExpandableListView in Android -


i have 1 activity (home.class), , activity contains 3 views:

first_view.xml, second_view.xml,third_view.xml

first_view.xml contains 2 buttons (btnsecond , btnthird). if click btnsecond, second_view.xml appear. if click btnthird, third_view.xml appear.

in third view there expandablelistview. extend expandablelistactivity in home.class. there problem.

when running, exception occurs:

java.lang.runtimeexception: content must have expandablelistview id attribute 'android.r.id.list'

when use expandablelistview in xml files, problem solved. want display list in third_view.xml. how can solve problem?

make sure name list view "@android:id/list". go here more info.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -