Forum Discussion

tungnt's avatar
tungnt
Copper Contributor
May 18, 2021

Can we have booth activities fullscreen in IntentToSecondScreen sample?

Hi, I tried making an app similar to IntentToSecondScreen sample. I notices when device is on 3-button navigation mode:

the navigation bar always appears on the screen that not have focused.

I tried calling this on booth activities after that but it didn't work:

getWindow().getDecorView().setSystemUiVisibility(
	android.view.View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
	android.view.View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
	android.view.View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
	android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
	android.view.View.SYSTEM_UI_FLAG_FULLSCREEN	|
	android.view.View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
);

onSystemUiVisibilityChange function also is not triggered each time the navigation bar shows/hides.

Do you guys have any suggestion on this?
Thank you.

No RepliesBe the first to reply

Resources