Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- builder.setTitle("Выберите ингредиенты для пиццы")
- .setCancelable(false)
- .setIcon(R.drawable.pizza)
- .setMultiChoiceItems(mIngredients, null, new DialogInterface.OnMultiChoiceClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which, boolean isChecked) {
- mSelectedIngredients[which] = isChecked;
- }
- })
- .setPositiveButton("ОК",
- new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- finish();
- }
- })
- .setNegativeButton("Отмена",
- new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- dialog.cancel();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement