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
Post a Comment