Search code examples
androidkotlinandroid-emulatorandroid-alertdialogandroid-xml

Dialog Scrim Is Not Shown In Emulator


I have a problem in my emulator. My emulator is not shown AlertDialog Scrim. I don't know why. I was try to reset my emulator, changing API level but not solve problem. How can I solve?

Number 5 is Scrim

What is Scrim

There is an example for comparing. My emulator like right but real device like left

There is an example


Solution

  • These steps should enable the Dialog Scrim/Dim/Fade

    1. Turn on your emulator/device Developer Options;
    2. Scroll down to the section 'Hardware accelerated rendering';
    3. Then, just enable the 'Disable HW overlays'.

    Any question about Developer Options, refer to this documentation: Enable Developer options

    Disable HW Overlays