不相信你读到的一切?,已弃用?或者
一本书(Smith 和 Friesen 所著的“Android Recipes”)展示了这一点:
public class ContactsListListActivity extends ListActivity implements AdapterView.OnItemClickListener {
...然而,“AdapterView.OnItemClickListener”不仅在 Eclipse 中无法通过 New | 获取。班级 |接口(“添加”按钮),但是当我添加添加的“AdapterView.OnItemClickListener”时,它无法被识别(“AdapterView 无法解析为类型”)。这是否已被弃用,或者......???
A book ("Android Recipes" by Smith and Friesen) shows this:
public class ContactsListListActivity extends ListActivity implements AdapterView.OnItemClickListener {
...yet not only was "AdapterView.OnItemClickListener" not available in Eclipse via New | Class | Interfaces ("Add" button) but when I added added "AdapterView.OnItemClickListener" it wasn't recognized ("AdapterView cannot be resolved to a type"). Is this deprecated, or...???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
Object.OnXXXListener()
时的一个常见错误是 eclipse 不会自动导入它。轻松手动修复它:
您可以通过添加以下内容
A common error when working with
Object.OnXXXListener()
is that eclipse doesn't import it automatically.You can easily fixed it manually by adding:
As another note: