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