2
我的數據庫有12個值我用列表視圖中的表格佈局,但在第二排它再次開始從數據庫如何增加遊標值?
class NoteHolder {
private Button b1 = null;
private Button b2 = null;
private Button b3 = null;
NoteHolder(View row) {
b1 = (Button) row.findViewById(R.id.one);
b2 = (Button) row.findViewById(R.id.two);
b3 = (Button) row.findViewById(R.id.three);
}
void populateFrom(Cursor c, NoteHelper helper) {
b1.setText(helper.getNote(c));
c.moveToNext();
b2.setText(helper.getNote(c));
c.moveToNext();
b3.setText(helper.getNote(c));
}
}
它的工作原理,但我的數據庫有12個值我使用表格佈局列表視圖,但在第二排它再次開始顯示從數據庫中 –
秒值,請張貼相關的代碼部分的列表顯示 – Caner