A dialog asking "Delete record?" with Delete/Cancel buttons is created with:

  1. NotificationCompat.Builder
  2. PopupMenu
  3. Toast.makeText
  4. AlertDialog / MaterialAlertDialogBuilder
Answer

D) AlertDialog / MaterialAlertDialogBuilder

Alert dialogs show a title, message and buttons.

Computer Science MCQ · More Action Bar and User Interface Design MCQs · Practise