Hi all,
I am encountering an exception in the onCreate method of an activity.
java.lang.RuntimeException: Your content must have a
ExpandableListView whose id attribute is 'android.R.id.list'
The onCreate method is as below.
public class TestActivity extends ExpandableListActivity {
Hi
in your xml change the bold item you must specify the id respect to
*...@android:id/list
not @+id/list*
ExpandableListView
android:id=*...@android:id/list*
android:layout_width=wrap_content
android:layout_height=wrap_content /
/LinearLayout
Thank you.
On Wed, Mar 3,
2 matches
Mail list logo