I have a full screen Activity
, here is all the related code on how I make it fullscreen:
Manifest.xml
<activity
android:name=".Player"
android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen.player" />
styles.xml
<style name="Theme.AppCompat.Light.NoActionBar.FullScreen.player" parent="@style/Theme.AppCompat.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
Activity onCreate
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
I then display a BottomSheetDialog
, as shown below:
bottomSheetDialog = new BottomSheetDialog(this);
bottomSheetDialog.setContentView(dialogView);
bottomSheetDialog.show();
The problem I have is when I show the BottomSheetDialog
, the StatusBar
gets shown as well.
I have noticed that the StatusBar
is hidden when in-app purchase dialog gets displayed and it looks to me like it's a BottomSheetDialog
.
How can I not show the StatusBar
when I'm displaying a BottomSheetDialog
?