How to get the correct available size on Window (without all the decor elements)?

23 views Asked by At

Is there any way to get the available size on a window without decor elements (status bar, navigation bar and cut outs)?

I've tried using the getSize from WindowManager.getDisplay(), but for some reason, if the device does not have a display cut out, it does not disconsider the status bar area.

0

There are 0 answers