我可以使用它吗?
ListAdapter adapter = new SimpleAdapter(ListViewActivity.this, menuItems,
R.layout.list_item_projects,
new String[]{KEY_JOBTITLE, KEY_JOBINFO}, new int[]{
R.id.jobtitle, R.id.jobinfo});
ListAdapter taskadapter = new SimpleAdapter(ListViewActivity.this,menuItems,
R.layout.list_item_tasks,
new String[]{KEY_TITLE,KEY_INFO,KEY_OBJECT,KEY_LOCATION},
new int[]{R.id.title,R.id.info,R.id.object,R.id.location});
setListAdapter(taskadapter);
setListAdapter(adapter);
或者我可以只使用一个setListAdapter
吗?
答案 0 :(得分:0)
你不能只使用两次setListAdapter