我使用英语非常糟糕,因此很难描述下面的问题。困扰每个人:):))
我的代码如下:
String sql = "select * from " + MySQLiteOpenHelper.tb_name
+ " where " + MySQLiteOpenHelper.cl_id_atm + " > 0 and "
+ MySQLiteOpenHelper.cl_id_atm + " <= 300";
cursor = dataHelper.SELECTSQL(sql);
while (cursor.moveToNext()) {
String id = cursor.getString(cursor
.getColumnIndex(MySQLiteOpenHelper.cl_id_atm));
String Bank = cursor.getString(cursor
.getColumnIndex(MySQLiteOpenHelper.cl_bank));
String Address = cursor.getString(cursor
.getColumnIndex(MySQLiteOpenHelper.cl_address));
Log.d(TAG, "id: " + id + " Bank: " + Bank + " address: "
+ Address);
}
String[] from = { MySQLiteOpenHelper.cl_bank,
MySQLiteOpenHelper.cl_address };
int[] to = { R.id.tvBank, R.id.tvAddress };
adapter = new SimpleCursorAdapter(AtmActivity.this,
R.layout.item_atm_layout, cursor, from, to);
setListAdapter(adapter);
哟,我需要使用AutoLoadMore来解决这个问题(300行,加载非常愚蠢的o.O),以及如何做到这一点?
谢谢!