如何使用ArrayAdapter<myClass>
ArrayList<MyClass> myList = new ArrayList<MyClass>();ListView listView = (ListView) findViewById(R.id.list); ArrayAdapter<MyClass> adapter = new ArrayAdapter<MyClass>(this, R.layout.row, to, myList.);listView.setAdapter(adapter);
class MyClass { public String reason; public long long_val;}
米琪卡哇伊
相关分类