質問編集履歴
1
プログラムの訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,10 +106,6 @@
|
|
106
106
|
ListView dialogReportList = dialogView.findViewById(R.id.listView);
|
107
107
|
Cursor cursor = SampleDAO.findAll(db);
|
108
108
|
String[] from = {"_id", "name"};
|
109
|
-
// int[] to = {R.id.reportTitle, R.id.percent};
|
110
|
-
// SimpleCursorAdapter adapter = new SimpleCursorAdapter(getActivity(), R.layout.dialog_report_list, cursors, from, to, 0);
|
111
|
-
// adapter.setViewBinder(new DialogCustomViewBinder());
|
112
|
-
// dialogReportList.setAdapter(adapter);
|
113
109
|
int[] to = {android.R.id.text1, android.R.id.text2};
|
114
110
|
SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_2, cursor, from, to, 0);
|
115
111
|
dialogReportList.setAdapter(adapter);
|