视图无法解析为一种类型 [英] view cannot be resolved to a type

查看:87
本文介绍了视图无法解析为一种类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里的视图似乎有什么问题?我该如何解决?

what seems to be the problem with view here? how do i solve it?

错误视图无法解析为类型"

the error "View cannot be resolved to a type"

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.

You should import it. If you are using Eclipse, press Ctrl+Shift+o.

这篇关于视图无法解析为一种类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆