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 9141493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:39:07+00:00 2026-06-17T09:39:07+00:00

I am currentlky trying to hide and show my application in Fullscreen. I started

  • 0

I am currentlky trying to hide and show my application in Fullscreen.
I started a new FullScreenActivity according to the Eclipse templates.

This is the code I use to show / Hide the ActionBar + NotificationBar

public void hide() {
    if ((mFlags & FLAG_FULLSCREEN) != 0) {
        mActivity.getSupportActionBar().hide();
        mActivity.getWindow().setFlags(
                WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);

    }
    mOnVisibilityChangeListener.onVisibilityChange(false);
    mVisible = false;
}

public void show() {
    if ((mFlags & FLAG_FULLSCREEN) != 0) {
        mActivity.getSupportActionBar().show();         
        mActivity.getWindow().setFlags(0,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);            
    }
    mOnVisibilityChangeListener.onVisibilityChange(true);
    mVisible = true;
}

It kinda work but my big issue is that the ActionBar is overlapped by notifications:

enter image description here

Any idea on what is wrong?

  • 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-17T09:39:08+00:00Added an answer on June 17, 2026 at 9:39 am

    Self answer:

    I had to remove these lines that were automatically generated in the template:

        if ((mFlags & FLAG_LAYOUT_IN_SCREEN_OLDER_DEVICES) == 0) {
            mActivity.getWindow().setFlags(
                    WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
                            | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
                    WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
                            | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use show/hide on a submenu. It looks like this: Parent 1
http://dl.dropbox.com/u/921159/desktopography/index.html I'm building a wallpaper blog and trying to use jquery to show/hide a
I am using this show/hide DIV code in my project: http://papermashup.com/demos/jquery-show-hide-plugin/ Currently, after you
i'm trying to use jQuery slideToggle() function to show and hide a table with
I'm new to JQuery. I'm trying to show and hide multiple divs. I have
How can I show/hide component with JSF? I am currently trying so do the
I'm trying to adapt Andy Langton's show/hide/mini-accordion ( http://andylangton.co.uk/jquery-show-hide ) to work within a
I am trying to show/hide a table onclick of a checkbox and show another
I am currently trying to show/hide a custom ribbon button based on the value
I am trying to show/hide the next two rows of a table using jquery.

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.