Hi,all I have one question about ExpandableList. when I learned the sample of ExpandableList ,I found the Constructor API about SimpleExpandableListAdapter,like this:
1 SimpleExpandableListAdapter(Context context, List<? extends Map<String, ?>> groupData, int groupLayout, String[] groupFrom, int[] groupTo, List<? extends List<? extends Map<String, ? >>> childData, int childLayout, String[] childFrom, int[] childTo) 2 SimpleExpandableListAdapter(Context context, List<? extends Map<String, ?>> groupData, int expandedGroupLayout, int collapsedGroupLayout, String[] groupFrom, int[] groupTo, List<? extends List<? extends Map<String, ?>>> childData, int childLayout, String[] childFrom, int[] childTo) 3 SimpleExpandableListAdapter(Context context, List<? extends Map<String, ?>> groupData, int expandedGroupLayout, int collapsedGroupLayout, String[] groupFrom, int[] groupTo, List<? extends List<? extends Map<String, ?>>> childData, int childLayout, int lastChildLayout, String[] childFrom, int[] childTo) I used the 2rd Constructor and the two diff custom layout xml files,but the result was not what I want. Only the collapsedGroupLayout effected , when the ExpandableList group expanded / collapsed. How can I get the correct result that when the ExpandableList expand,the group uses the expandedGroupLayout and when the ExpandableList collapse,the group uses the collapsedGroupLayout ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---