クリックをリッスンする が関連付け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();
}