Hi all,
I want to add an ExpandableListView in a LinearLayout defined in
main.xml. But I met "NullPointerException:null" when I added it to the
xml file. I don't know what's wrong with it.
Could anyone help me to solve this problem?
Thank you in advance!
Here is the code of main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" xmlns:android="http://
schemas.android.com/apk/res/android"><Button android:id="@+id/
Button01" android:layout_width="wrap_content"
android:layout_height="wrap_content"></Button>
<ExpandableListView android:id="@+id/ExpandableListView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></ExpandableListView>
</LinearLayout>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---