setOnItemLongClickListener .
ExpandableListView.PACKED_POSITION_TYPE_GROUP - ,
ExpandableListView.PACKED_POSITION_TYPE_CHILD, longclicks .
- :
pager_income = (ExpandableListView) findViewById(R.id.income_scroll);
pager_income.setOnItemLongClickListener(new OnItemLongClickListener() {
@Override
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
if (ExpandableListView.getPackedPositionType(id) == ExpandableListView.PACKED_POSITION_TYPE_GROUP) {
return true;
}
return false;
}
});