AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 48


What does the following code do?

dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND,

LayoutParams.FLAG_BLUR_BEHIND);

Show Answer
Correct Answer: A

The code uses the setFlags method with LayoutParams.FLAG_BLUR_BEHIND, which indicates that when the dialog is displayed, the activity behind the dialog will be blurred. This is specified by the flag's purpose: to blur everything behind the window.

Discussion

1 comment
Sign in to comment
MmadiOption: A
Dec 31, 2022

A. When dialog is displayed the activity behind it will be blurred.