ListActivity show List

---------------------------------------------------------
listTitle<String>
setListAdapter(new ArrayAdapter(this, R.layout.rsslist_item,
listTitle));
-------------------------------------------------------------
list<items>
public class ItemAdapter extends BaseAdapter{
...
...
...
}

setListAdapter(new ItemAdapter(this,items));

----------------------------------------------------------------
mCursor = managedQuery(getIntent().getData(), PROJECTION, null, null);

SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.noteslist_item, cursor,
new String[] { Notes.TITLE }, new int[] { android.R.id.text1 });
setListAdapter(adapter);

----------------------------------------------------------------

list<map<String,Object>>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章