java - 我的回收站视图显示从设备 Android 中删除的项目
问题描述
//我的删除onClick
public void onClick(DialogInterface dialog, int id) {
File file = new File(arrayList.get(position).getStr_path());
file.delete();
arrayList.remove(position);
Adapter_VideoFolder.this.arrayList.remove(position);
Adapter_VideoFolder.this.notifyDataSetChanged();
//我的回收站视图显示从设备中删除的项目,我的代码是: