我有这个代码:
cursor = tbDispositivos.fetchAll();
if(cursor.getCount() > 0){
TextView emptyText = (TextView) findViewById(android.R.id.empty);
emptyText.setVisibility(View.GONE);
}
adapter = new DispositivosCursorAdapter(this, cursor);
dispositivosList = (ListView) findViewById(android.R.id.list);
dispositivosList.setAdapter(adapter);
cursorCount = cursor.getCount();
listViewCount = dispositivosList.getCount();
listViewCount
比 大 1 cursorCount
。为什么?