hello
I have an App that can be in portrait or landscape (i rotate runtime)
I use the p.SetScreenOrientation() function to swap between the two.
it works
now
1) I need to hide the bottom navigation bar, always for the 2 orientations
2) I want to to hide the top bar only in landscape mode, as when in portrait mode the camera lens (the notch) could cover some views, so the top bar is OK when in portrait - not in landscape
3) i need to use it in my app that can rotate as the user want
I read about the immersive mode
but there are no comments in the code of the example project,
so I cannot understand the code to set the
- top bar HIDDEN YES or NO (i choose)
- bottom bar always hidden
and the example is writter for b4xpages, I use an activity as I need to rotate to landscape...
and that code is 10 years old...
I'am very confused
so the question is:
hot to RUNTIME hide the top bar (as i want) and hide the bottom navigation bar in my Activity , portrait or landscape (changed runtime) app?
thank you
I have an App that can be in portrait or landscape (i rotate runtime)
I use the p.SetScreenOrientation() function to swap between the two.
it works
a:
'this rotate to landscape
Dim p As Phone
p.SetScreenOrientation(0)
now
1) I need to hide the bottom navigation bar, always for the 2 orientations
2) I want to to hide the top bar only in landscape mode, as when in portrait mode the camera lens (the notch) could cover some views, so the top bar is OK when in portrait - not in landscape
3) i need to use it in my app that can rotate as the user want
I read about the immersive mode
but there are no comments in the code of the example project,
so I cannot understand the code to set the
- top bar HIDDEN YES or NO (i choose)
- bottom bar always hidden
and the example is writter for b4xpages, I use an activity as I need to rotate to landscape...
and that code is 10 years old...
I'am very confused
so the question is:
hot to RUNTIME hide the top bar (as i want) and hide the bottom navigation bar in my Activity , portrait or landscape (changed runtime) app?
thank you
Last edited: