nerdexam
Android

AND-401 · Question #123

Which of the following is true about the Dialog class? (Choose two)

The correct answer is A. You can add a custom layout to a dialog using setContentView(). C. A dialog is displayed on the screen using method show(). See the full explanation below for the reasoning.

Question

Which of the following is true about the Dialog class? (Choose two)

Options

  • AYou can add a custom layout to a dialog using setContentView().
  • BA dialog has a life-cycle independent of the Activity.
  • CA dialog is displayed on the screen using method show().
  • DIt does not have a method to access the activity that owns it.

How the community answered

(29 responses)
  • A
    72% (21)
  • B
    17% (5)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice