リストビュータイプのものを介して表示しているデータベースがあります。OnClickListenerに追加するにはどうすればよいですか?
コードは次のとおりです。
public void DisplayRecord(Cursor c) {
Cursor c1 = DBAdapter.getAllRecords();
startManagingCursor(c1);
String[] from = new String[] { DBAdapter.KEY_ITEM };
int[] to = new int[] { R.id.text1 };
SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.row,
c1, from, to);
setListAdapter(notes);
}
それとも可能ですか?
そして、このリストをアルファベット順に並べ替えるにはどうすればよいですか?