Im just new in android development. Now learning delete from sqlite database. I try to remove item from custom adapter and notify that data has been changed. But this seems not work. These particular strings dont work, I tried all of them.
mListDataAdapter.remove(mListDataAdapter.getItem(position));
mListDataAdapter.notifyDataSetChanged();
Neither works mListDataAdapter.clear(); No changes to adapter in debugging mode.
My activity extends AppCompatActivity if this helps. I call this code inside onActionItemClicked. At the same time I call delete from database, which works correct.
I feel like the clue is in using custom adapter. But it seems that I have a luck of knowledge needed. Will be thankful for any help.
Aucun commentaire:
Enregistrer un commentaire