Je souhaite effacer la liste après avoir effectué la mise à jour avec la date (ajouter ou supprimer). J'utiliser setadapter comme mention ici How to clear the views which are held in the ListView's RecycleBin?setadapter dans expandablelistview différent de setadapter dans listview?
expList = (ExpandableListView) findViewById(R.id.expandableList);
expListAdapter = new POIExpandableListAdapter(LocationSettingActivity.this);
expListAdapter = expList.getAdapter();
expList.setAdapter (expListAdapter);
Mais cela inutile, la vue est d'ajouter toutes les données et les données mises à jour (pas de rafraîchissement), est-il un autre entre setadapter à expandablelistview avec setadapter dans listview?
Note: POIExpandableListAdapter est une classe étend BaseExpandableListAdapter
Lire em et pleurez [getAdapter] (http://developer.android.com/reference/android/widget/ExpandableListView.html#getAdapter()) [setAdapter] (http: // développeur .android.com/reference/android/widget/ExpandableListView.html # setAdapter (android.widget.ExpandableListAdapter)). –