需要帮助从 Activity 调用 Listactivity
我需要帮助知道如何从 Activity 类调用 ListActivity?有人可以帮助我吗?
I need help to know, how can I call ListActivity from the Activity class? Can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定“从 Activity 类调用 ListActivity”是什么意思。
如果您正在寻找有关使用 ListActivity 和/或 ListViews 的信息,请查看 http://developer.android.com/guide/tutorials/views/hello-listview.html 和 是吗例如,可以在 Android 上实现吗?。
如果您正在查找有关从另一个 Activity 启动 ListActivity 的信息,例如当按下非 ListView Activity 上的按钮时,请注意,这与从其他 Activity 启动第二个 Activity 没有太大区别。请参阅 http://developer.android.com/resources/tutorials/notepad/index .html 就是这样一个例子。
记事本教程还包括一个 ListActivity 启动非 ListView Activity 的示例,这与您最初可能询问的内容非常接近。
如果您仍然遇到困难,请尝试询问一个非常具体的问题,了解您遇到的困难,包括完整的最少代码来复制您遇到的任何问题。
I'm not sure what you mean by "call ListActivity from the Activity class".
If you're looking for information on using ListActivity and/or ListViews, take a look at http://developer.android.com/guide/tutorials/views/hello-listview.html and Is it realizable on Android? for examples.
If you're looking for information on starting a ListActivity from another Activity, for example when a button on the non-ListView activity is pressed, note that this isn't much different from just starting a second Activity from some other Activity. See http://developer.android.com/resources/tutorials/notepad/index.html for such an example.
The notepad tutorial also includes an example of a ListActivity starting a non-ListView Activity, which is very close to what you may be originally asking about.
If you're still stuck, try to ask a very specific question about what you're stuck on, including complete minimal code to replicate any problems you're having.
您必须包含在清单文件中。
You have to include in the Manifest file.