Code example for ExpandableListView

Methods: collapseGroup

0
            pushClient.setURL(updateURL, quantityUpdateArguments);
            pushClient.asynchronousLoadClientData();
            pushClient.logURL();
             
            if (food.getQuantity() == 0) {
                associatedView.collapseGroup(buttonGroupPosition);
                items.remove(food);
            } 
            notifyDataSetChanged();
        } 
         
        @Override 
        public void update(Observable observable, Object data) {
            if (!pushClient.lastCompletedPushSuccessful()) {
                Toast.makeText(context, "Update Error", 
                               Toast.LENGTH_LONG).show();
            } 
        } 
         
        private DataPushClient pushClient;
        private int buttonGroupPosition;