Jump to content

Taskbar doesn't auto hide when launching app fullscreen


Recommended Posts

Posted (edited)

image.png.68b367eb75e4bbe1b37c105d4caea124.png
Standard Android app -  top statusbar and bottom taskbar stays visible

 

image.png.6b995f239f7f332e82c3df1d0ecc8f19.png
Android TV app - both statusbar and taskbar are hidden

Android 13 introduces this taskbar which hides during fullscreen playback but does not hide during fullscreen navigation on the standard android app. Is there some way to copy what Android TV does to hide both these bars during navigation?

Edited by speechles
  • Like 1
Posted

HI, it's the TV app that is actually functioning incorrectly here. There isn't a Fullscreen button outside of playback. Not currently at least.

Did you try double clicking the header? I don't recall off the top of my head if we've implemented that on android or not.

Posted

@Lukehttps://developer.android.com/develop/ui/views/layout/immersive

Specify which system bars to hide

To specify the type of system bars to hide, pass one of the following parameters to WindowInsetsControllerCompat.hide().

Posted
6 minutes ago, speechles said:

@Lukehttps://developer.android.com/develop/ui/views/layout/immersive

Specify which system bars to hide

To specify the type of system bars to hide, pass one of the following parameters to WindowInsetsControllerCompat.hide().

Right, if we had a button to enter that mode, but it shouldn't open up by default and cover the system task bar.

Posted (edited)
7 minutes ago, Luke said:

Right, if we had a button to enter that mode, but it shouldn't open up by default and cover the system task bar.

It should open up by default if the app is in fullscreen mode when it launches. That is entirely the point of immersive mode. There is no need for a button. All bars get hidden.

Once the user isn't using what the device detects as the fullscreen resolution you can add the bars back. That way even split-screen would work. Since the resolution is detected at whatever the split is. Every other app works this way without a button.

I am curious why would you think you would need a button?

Right now the bars are just omnipresent all the time making Android TV look more attractive in fullscreen.

---

Specify behavior of hidden system bars

Use WindowInsetsControllerCompat.setSystemBarsBehavior() to specify how hidden system bars behave when the user interacts with them.

It would be easy to get them to appear with a screen tap or swipe or however you wanted users to interact to bring it back. But it shouldn't be a button.

WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE

The above would be the most intutive way to handle the bars if users want to interact with them. Swipe down from absolute top (say the highest 50 pixels) the system bar shows. Swipe up from absolute bottom (say the lowest 50 pixels) the system bar/navigation bar shows up.

 

Edited by speechles

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...