How to delete entry and video file in a listview file browser?

前端 未结 4 1259
感动是毒
感动是毒 2020-12-04 01:35

Problem description: I wanted a \"delete\" function which could perform delete/remove of the selected entry in a listview and at the same time delete the residing video file

4条回答
  •  再見小時候
    2020-12-04 01:44

    Do you want to delete the adapter or do you want to delete a row/entry in the list? If latter, then update videoItems and call notifyDataSetChanged on your adapter. If you really want to delete the adapter, then just set it to NULL or have it refer to some other ListAdapter instance and the GC will take care of the rest.

提交回复
热议问题