i think this should be easy to replicate - just create a subclass of
SimpleEx.. with 1 group entry and no children - click on the group
button
public class MyExpandableListAdapter extends
SimpleExpandableListAdapter
{
public MyExpandableListAdapter(
Context context,
List<Map<String, String>> groupData,
int groupLayout,
String[] groupFrom, int[] groupTo,
List<List<Map<String, String>>> childData,
int childLayout,
String[] childFrom, int[] childTo )
{
super( context, groupData, groupLayout, groupFrom,
groupTo, childData, childLayout, childFrom, childTo );
// here i made sure childData.size() was 0
}
public View getGroupView(int groupPosition, boolean
isExpanded, View convertView, ViewGroup parent)
{
// gets called once
}
public View getChildView(int groupPosition, int childPosition,
boolean isLastChild, View convertView,
ViewGroup parent)
{
// does not get called - that's correct
}
}
--
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