Hello,
In my expandableListView I've made a custom button to expand/collapse
the group and for expanding it works, but when collapsing no.
with this code
listView.setOnGroupClickListener(new OnGroupClickListener() {
@Override
public boolean onGroupClick(ExpandableListView parent,
View v, int groupPosition, long id) {
Log.d("group click");
return true;
}
});
listView.setOnGroupCollapseListener(new
OnGroupCollapseListener() {
@Override
public void onGroupCollapse(int groupPosition) {
Log.d("group collapse");
}
});
listView.setOnGroupExpandListener(new OnGroupExpandListener()
{
@Override
public void onGroupExpand(int groupPosition) {
Log.d("group expand");
}
});
With this code: when group is collapsed:
clicking on button = expand the group
clicking anywhere else on the group = do something handle by
setOnGroupClickListener
when group is expanded:
clicking on button = collapse the group (ok but...)
clicking anywhere else on the group = collapse the group and not
reaction from setOnGroupClickListener
Why setOnGroupClickListener is not loaded when I click on an expanded
group ? How to solve that ?
--
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