我有這樣的代碼:自定義的ListView - 不能實例類型ListAdapter
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ListView lv = (ListView) findViewById(R.id.lvResult);
ListAdapter listAdapter = new ListAdapter(Prueba.this, imageList, list1, list2);
lv.setAdapter(listAdapter);
}
它給出了一個錯誤:
Cannot instantiate the type ListAdapter
在同一個包,我創建了一個名爲ListAdapter.java
帶班其碼。
我不知道那是什麼錯誤。
是的,我已經改名班了,一切都好。謝謝 ;) – fr4n 2011-06-16 09:48:29