Android
OA0-002 · Question #56
OA0-002 Question #56: Real Exam Question with Answer & Explanation
Sign in or unlock OA0-002 to reveal the answer and full explanation for question #56. The question stem and answer options stay visible for context.
Question
The following code applies to a dialog layout defined in XML. Which is the correct code that goes into (1)? (Assume the dialog layout is correctly defined in res/layout/custom_dialog.xml, and there are no other problems in the rest of the application.)
Options
- Adialog.inflate(R.layout.custom_dialog);
- Bdialog.setContentView(R.layout.custom_dialog);
- Cdialog.getinflate().inflate(R.layout.custom_dialog);
- Ddialog.setLayout(R.layout.custom_dialog);
Unlock OA0-002 to see the answer
You've previewed enough free OA0-002 questions. Unlock OA0-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.