Exam4Training

What does the following code do?

What does the following code do?

dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND, LayoutParams.FLAG_BLUR_BEHIND);
A . When dialog is displayed the activity behind it will be blurred.
B . When dialog is displayed the activity behind it will be dimmed.
C . Any EditText behind the dialog will be disabled.
D . When the dialog is displayed, the edges of the dialog will be blurred.

Answer: A

Explanation:

public static final int FLAG_BLUR_BEHIND

Window flag: blur everything behind this window.

Note: Added in API level 1

This constant was deprecated in API level 14.

Blurring is no longer supported.

References:

http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_BLUR_BEHIND

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version