我有一个DialogFragment
与之关联SimpleAdapter
的监听点击。当我单击解雇本身中ListView
的任何项目时。DialogFragment
如何保持可见?
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setTitle(getResources().getString(R.string.choose_file_for_import));
mAdapter = new MAdapter(getActivity(), R.id.file_explorer_tv_filename, itemsList);
builder.setAdapter(mAdapter, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int position) {
File file = new File(pathList.get(position));
getDir(pathList.get(position));
mAdapter.notifyDataSetChanged();
}
return builder.create();
}