Android Application Development (AND-401) — Question 109
Which of the following is incorrect about ProgressDialog?
Answer options
- A. ProgressDialog inherits from the AlertDialog class.
- B. ProgressDialog can be set as 2 types of style: STYLE_HORIZONTAL and STYLE_SPINNER.
- C. ProgressDialog is able to apply a custom XML-defined layout by using the setContentView(...) method.
- D. ProgressDialog can be freely configured to use a Drawable class to display as its progress bar.
Correct answer: C
Explanation
The correct answer is C because ProgressDialog does not support applying a custom layout through setContentView(...). Options A, B, and D are correct as ProgressDialog does inherit from AlertDialog, supports both horizontal and spinner styles, and can utilize a Drawable class for its progress bar.