如何设置simplecursoradapter在Android的列表视图?视图、如何设置、列表、Android

由网友(人心如海)分享简介:我要的simpleCursorAdapter设置成一个ListView。i have to set the simpleCursorAdapter into a listView.我怎样才能做到这一点?how can i achieve that?感谢。推荐答案这问题有点模糊,所以我很想简单地回答:Thi...

我要的simpleCursorAdapter设置成一个ListView。

i have to set the simpleCursorAdapter into a listView.

我怎样才能做到这一点?

how can i achieve that?

感谢。

推荐答案

这问题有点模糊,所以我很想简单地回答:

This question is a bit vague, so I'm tempted to answer simply:

my_list_view.setAdapter(my_cursor_adapter);

但也有文档中更好地解释和例子。这里有一个:

But there are better explanations and examples in the documentation. Here is one:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List2.html

阅读全文

相关推荐

最新文章