1

AlertDialog with both single choice and multi choice items

view story
linux-howto

http://stackoverflow.com – I have an alert dialog and would like to have three options that a user can choose one of, and an additional option that a user can toggle on or off. Is this possible? When I try and add both single and multi choice items the second overwrites the first. AlertDialog.Builder builder = new AlertDialog.Builder(ContactListActivity.this); builder.setTitle(R.string.sort_dialog_title); builder.setSingleChoiceItems(R.array.sort_options_array, -1, null); builder.setMultiChoiceItems(R.array.sort_reverse_option, null, null); (HowTos)