Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide navigation bar?

Tags:

java

android

cosu

I am on android 6. Looking for solutiong where I can hide and disable nav bar with soft keys(home, back, recent). On a google page (COSU IMPLEMENTATION) there is a picture comparing pinning and lock task modes, and on the right side we can see options looks like "Home and Recent buttons are hidden", prior to pin mode. But I didnt find any method to do it. I already locked an activity, but still can call nav bar with swipe up. Maybe someone here knows it.

like image 445
LionisIAm Avatar asked Oct 28 '17 18:10

LionisIAm


People also ask

How do I hide the navigation bar?

Way 1: Touch “Settings” -> “Display” -> “Navigation bar” -> “Buttons” -> “Button layout”. Choose the pattern in “Hide navigation bar” -> When the app opens, the navigation bar will be automatically hidden and you can swipe up from the bottom corner of the screen to show it.

How do I hide the navigation bar at the bottom of my screen?

If you want to hide the navigation bar, just follow these steps: 1 Open your “Settings” and tap “Display”. 2 Scroll down to the “Navigation bar” option and tap on it. 3 Here you can choose between “Buttons” and “Swipe gestures”.

How do I hide the navigation bar on my Samsung?

It's a nice mixture of Android 9 Pie and Android 10 gestures. Go through the steps below to make changes. Step 1: Open the Settings app on your Samsung device. Step 2: Navigate to the Display > Navigation Bar > Full screen gestures > More options > Swipe from bottom.


1 Answers

Ok. For everybody who faces. Its impossible to hide navigation bar at all. On a google web page we can see only "HOME AND RECENT BUTTONS ARE HIDDEN", but not the BACK button. So for now with startLockTask() method we can hide everything BUT BACK button. Also disabling status bar it wont be invisible. You can still call it with swipe but there are nothing on it.

like image 90
LionisIAm Avatar answered Sep 28 '22 03:09

LionisIAm