Navigation bar question
Posted: Fri Sep 01, 2023 6:07 pm
Hi All,
I'm updating an old app that was first created when devices had physical buttons, but now most devices use soft buttons on the navigation bar.
While you can hide the status bar in Livecode, you cannot hide the navigation bar.
The function working screenRect respects whether the status bar is visible or not, but ignores the navigation bar.
Now I know the reason for this but how do you design an app to miss the bar?
There is an immersive mode in Android, but LC have never implemented this. It was reported as a bug in 2014!
https://quality.livecode.com/show_bug.cgi?id=13041
I could estimate the size of the bar and make an allowance for it at the bottom of the screen. However, in the simulator the navigation bar is always at the bottom of the screen in both portrait and landscape modes, but on my Samsung phone the bar stays put and doesn't move when the screen rotates. This means that in portrait mode it is at the bottom, but in landscape mode it is on the right.
So to guarantee missing the bar and to have the app appear symmetrical I would have to leave equal areas top and bottom, and left and right, clear of any objects.
Does anyone have any better ideas?
Thanks
Steve
I'm updating an old app that was first created when devices had physical buttons, but now most devices use soft buttons on the navigation bar.
While you can hide the status bar in Livecode, you cannot hide the navigation bar.
The function working screenRect respects whether the status bar is visible or not, but ignores the navigation bar.
Now I know the reason for this but how do you design an app to miss the bar?
There is an immersive mode in Android, but LC have never implemented this. It was reported as a bug in 2014!
https://quality.livecode.com/show_bug.cgi?id=13041
I could estimate the size of the bar and make an allowance for it at the bottom of the screen. However, in the simulator the navigation bar is always at the bottom of the screen in both portrait and landscape modes, but on my Samsung phone the bar stays put and doesn't move when the screen rotates. This means that in portrait mode it is at the bottom, but in landscape mode it is on the right.
So to guarantee missing the bar and to have the app appear symmetrical I would have to leave equal areas top and bottom, and left and right, clear of any objects.
Does anyone have any better ideas?
Thanks
Steve