07-07-2013 12:05 PM
Is there any way to detect when a user has the navigation bar visible either through the top down swipe or has it pinned? My custom active bar is getting covered and my screen elements positioning aren't taking the navigation bar presence into consideration.
Solved! Go to Solution.
07-19-2013 10:07 AM
I'm still in need of a solution to this perplexing (to me) problem.
As an example of desired behavior check out the Kobo app and go to the Library view. Note the bottom app menu... Now swipe down to reveal the navigation bar. See how the Kobo menu bar moved up instead of getting covered?
My app need to detect the nav bar so I can move my custom bottom menu bar
07-19-2013 11:11 AM
Hey Blackmoe (sorry about the delay),
Though you cannot programmatically determine when the nav bar is showing, you can still have your layout be auto-resized when it pops up.
The caveat here is that if you've defined your activity to act as "fullscreen", the nav bar will show up over top of your layout. Removing this flag will allow your activity/layout to be automatically resized, thus not obscuring your view(s).
Hopefully that helps,
07-20-2013 07:20 PM
I changed my activities to not fullscreen but kept title bar as false.
Reloaded on my Z10 and got the same results as before. The navigation bar covers my bottom custom menu bar.
07-25-2013 03:46 PM
Hmm, that doesn't seem to match my results here. Is it possible that you've got the attribute on the layout itself (as well)?
If you're having no luck with that, you could log a bug from the link down below to have our developers take a look at it. You'll need to include a description of the problem, the OS that you're building against, and maybe some sample code / application that reproduces the issue.
08-16-2013 02:46 PM
After upgrading my test phone to 10.2 with Jellybean it now works as expected. My custom menu bar is automatically positioned above the navigation bar instead of behind it.
Because the navigation bar is now hard wired my app look a little cluttered. Is there going to be an option to hide the navigation bar since all it offers is the back icon and my menu bar already has that function.
08-22-2013 01:46 PM
We are looking at an option to allow users to hide the navigation bar. Hopefully this will be available in a future release.