这里的 View 似乎有什么问题?怎么解决?
错误“ View 无法解析为类型”
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {
Object o = my_listview.getItemAtPosition(position);
// write you handling code like...
String st = "sdcard/";
File f = new File(st+o.toString());
// do whatever u want to do with 'f' File object
Log.d("The position fo f:",o.toString());
}
有什么想法吗?
最佳答案
你应该导入它。如果您使用的是 Eclipse,请按 Ctrl+Shift+o。
关于android - View 无法解析为类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5512557/