Multiple choice alert dialog with custom row layout
问题 I need to create an AlertDialog with multiple choice items but I'm having some trouble trying to set a custom layout file to the internal ListView. For single choice items I use a constructor that takes a ListAdapter as parameter and this way I can set the proper layout resource for each row: builder.setSingleChoiceItems(new ArrayAdapter<String>(getActivity(), R.layout.list_item_single_choice_answer, items), checkedItem, new DialogInterface.OnClickListener() { @Override public void onClick