I'm trying to use sticky immersive full-screen in my app (as described here). However, when switching activities the navigation and status bar will show up at first and after a few moments disappear again. Is there any way to ensure that my app stays full-screen across activities?
Asked
Active
Viewed 216 times
3 Answers
0
Try using a full screen theme
in AndroidManifest
<activity
android:name=".Launch"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >

Manohar
- 22,116
- 9
- 108
- 144
-
This only seems to remove the status bar (and not the navigation bar). – Laís Minchillo Mar 16 '17 at 04:17
0
try thic code in your Activity OnCreate method
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
getSupportActionBar().hide();
setContentView(R.layout.activity_view_hotel_image);
i hope this work in your case

AskNilesh
- 67,701
- 16
- 123
- 163
-
This also removed only the status bar and not the navigation bar. – Laís Minchillo Mar 16 '17 at 15:46