How can achieve full screen mode with Samsung Galaxy S10 and S10+, the following code do not work for me:
getWindow().getDecorView().setSystemUiVisibility(
// Set the content to appear under the system bars so that the
// content doesn't resize when the system bars hide and show.
SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
// Hide the nav bar and status bar
// | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
);
It hide the content of the status bar but it doesn't hide the status bar it self :(
Please help
Put in the style of your app the following fixed this issue for me:
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
For more details about supporting cutout look at this: