输出rss列表?

时间:2011-07-10 02:30:38

标签: rss

我有rss的链接(论坛中的最新主题),我想在我的网站页脚中输出前5个最新主题的列表。我该怎么做呢?

2 个答案:

答案 0 :(得分:1)

    String[] from = new String[] { NotesDbAdapter.KEY_TITLE};//this is your text or feed title to be shown
    int[] to = new int[] { R.id.text1};//will show the title in text1.

//现在创建一个数组适配器并将其设置为使用xml文件显示(notes_row here)    SimpleCursorAdapter notes = new SimpleCursorAdapter(this,R.layout.notes_row,c,from,to);         setListAdapter(附注); 这一切都在创造方法上。

答案 1 :(得分:1)

添加两个以上的东西你可以使用自定义适配器,或者可以创建另一个扩展simplecursoradapter的类来查看代码检查this

相关问题