Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8988579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:02:11+00:00 2026-06-15T22:02:11+00:00

I am trying to hide / minimize the system bar in Android 4.0.3. At

  • 0

I am trying to hide / minimize the system bar in Android 4.0.3. At the moment I’am doing

getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

in the onCreate event of my activity. As soon as the user touches the screen the bar will show up again. According to other STO threads, this behavior can not be circumvented.
My idea is to catch any touch event on my view, and re-hide the bar immediately after it is shown. Running the code shown above in the click handler has no effect.
How to achieve a (hardly) hidden bar?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:02:12+00:00Added an answer on June 15, 2026 at 10:02 pm

    I will not talk about the ‘why’, just about the ‘how’ 🙂

    So, about

    getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
    

    This will not affect tablet devices, which use a system bar rather than a separate navigation
    and status bars.

    On Tablet, you could try (API Level 14 onward)

    myView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
    

    To detect the event, I think you could use this to catch the event:

    myView.setOnSystemUiVisibilityChangeListener(
       new OnSystemUiVisibilityChangeListener()
          {
          public void onSystemUiVisibilityChange(int visibility)
          {
             if (visibility == View.SYSTEM_UI_FLAG_VISIBLE) {
                // TODO whatever you want
             }
             else {
                // TODO what to do in the other case
             }
          }
       }
    );
    

    More generally, here is an additional advice from ‘Professional Android 4 Application development’

    It’s generally good practice to synchronize other changes within your
    UI with changes in navigation visibility. For example, you may choose
    to hide and display the Action Bar and other navigational controls
    based on entering and exiting “full screen mode.” You can do this by
    registering an OnSystemUiVisibilityChangeListener to your View —
    generally, the View you are using to control the navigation visibility

    .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to hide the status bar (top bar with time and signal strength
I am trying to hide the master view controller when a selection has been
Im trying to hide a specific image in mouse over and display another image.
I'm trying to hide the Settings area in CRM 2011 such that it is
I am trying to hide the div class hideme based on value of full_day
i'm trying to hide/show some control on a page from Page_LoadComplete. If a put
I am trying to hide/show a class of elements in a form depending on
I'm trying to hide a div in my template if the URL that is
I am trying to hide a div with an id #op-four using on instead
I'm trying to hide a div if certain value are selected in a drop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.