I have a link to 开发者_如何学Pythonan rss (latest topics in a forum) and I'd like to output a list of the top 5 latest topics in the footer of my site. How do I go about doing this?
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.
// Now create an array adapter and set it to display using your xml file(notes_row here) SimpleCursorAdapter notes =new SimpleCursorAdapter(this, R.layout.notes_row, c, from, to); setListAdapter(notes); all this is under on create method.
to add more than two things you can use custom adapter or can make another class that will extend simplecursoradapter to see code check this
精彩评论