순서대로 선택 항목을 누른 리스너와 함께 다중 선택 대화 상자를 만들고 싶습니다. 어떻게해야합니까?클릭 순서가있는 다중 선택 대화 상자
String[] multiChoiceItems =
getResources().getStringArray(R.array.dialog_choice_array_monday);
boolean[] checkedItems = {false, false, false, false, false, false, false};
new AlertDialog.Builder(NewScheduleActivity.this)
.setTitle(getString(R.string.main_dialog_multi_choice_monday))
.setMultiChoiceItems(multiChoiceItems, checkedItems, null)
.setPositiveButton(getString(R.string.dialog_ok), null)
.setNegativeButton(getString(R.string.dialog_cancel), null)
.show();
}
당신은 지정 대화를 시도 했습니까? 참조 : https://stackoverflow.com/questions/13341560/how-to-create-a-custom-dialog-box-in-android – nhoxbypass
@nhoxbypass 문제는 눌러 진 옵션의 순서를 듣는 것입니다. 이걸 깨닫는 방법을 모르겠다 – d0me
아래의 솔루션을 찾으려면 –