リストビューに正常にバインドしているデータベースから結果を取得するコードを記述しましたが、カスタムダイアログ形式でそのリストビューが必要です。つまり、リストデータがダイアログに表示されます。リストデータをカスタムダイアログボックスにアタッチする方法?
final Cursor cursor = dbHelper.fetchAllRecords();
String[] columns = new String[] {
RecordsDbAdapter.KEY_NAME,
RecordsDbAdapter.KEY_BIRTHDAY,
};
int[] to = new int[] {
R.id.name,
R.id.birthdate,
};
dataAdapter = new SimpleCursorAdapter(
this, R.layout.row,
cursor,
columns,
to);
ListView listView = (ListView) findViewById(R.id.list);
listView.setAdapter(dataAdapter);