80,475
社区成员
发帖
与我相关
我的任务
分享
lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
// List<FileInfo> list1 = new ArrayList<FileInfo>();
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
if (i == 0) {
File f = new File(f2[arg2].getAbsolutePath());
System.out.println("i=0时系统被点的文件" + f);
// System.out.println("Tag" + arg1.getTag());
if (f != null && f.isDirectory()) {
list.clear();
list.addAll(new GetDir().check(f));
// System.out.println("文件类型是" + list1.get(0).type);
f2 = new GetDir().check2(f);
f7 = new GetDir().check3(f);
if (f2 != null) {
System.out.println("进入F2 Directory判断");
// adapter.notifyDataSetChanged();
}
}
}
if (i == 1) {
File f = new File(f3[arg2].getAbsolutePath());
System.out.println("i=1时系统被点的文件" + f);
if (f != null && f.isDirectory()) {
list.clear();
list.addAll(new GetDir().check(f));
f3 = new GetDir().check2(f);
f8 = new GetDir().check3(f);
if (f3 != null) {
System.out.println("进入F3 Directory判断");
// adapter.notifyDataSetChanged();
}
}
}
adapter.notifyDataSetChanged();
}
});