Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Hide Status Bar on Android in PG 2.1.0?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Fly_Molo  
View profile  
 More options Dec 17 2012, 12:24 pm
From: Fly_Molo <j...@johnjmills.com>
Date: Mon, 17 Dec 2012 09:24:24 -0800 (PST)
Local: Mon, Dec 17 2012 12:24 pm
Subject: Hide Status Bar on Android in PG 2.1.0?

I have an android project that I'm updating from 1.8 to 2.1.0 and one of
the things I want to fix is that the status bar is showing at the top of
the screen.  Easy to remove on iOS, but I can't find a good solution on
Android.  

I did try adding:

    android:theme="@android:style/Theme.NoTitleBar"  

to the AndroidManifest.xml with no effect.

Are there any other options?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yan Gabriel Minário  
View profile  
 More options Dec 17 2012, 2:06 pm
From: Yan Gabriel Minário <yang...@gmail.com>
Date: Mon, 17 Dec 2012 11:06:31 -0800 (PST)
Local: Mon, Dec 17 2012 2:06 pm
Subject: Re: Hide Status Bar on Android in PG 2.1.0?

Try:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
If it dont work, we are on the same boat (having problems to hide statusbar
too)

Em segunda-feira, 17 de dezembro de 2012 15h24min24s UTC-2, Fly_Molo
escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fly_Molo  
View profile  
 More options Dec 17 2012, 5:34 pm
From: Fly_Molo <j...@johnjmills.com>
Date: Mon, 17 Dec 2012 14:34:39 -0800 (PST)
Local: Mon, Dec 17 2012 5:34 pm
Subject: Re: Hide Status Bar on Android in PG 2.1.0?

I found a fix.  

I needed to add the "getWindow()..." code to my main activity java file
like so:

@Override

    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        //setContentView(R.layout.activity_main);

        // remove status bar so app will be full screen

        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

             WindowManager.LayoutParams.FLAG_FULLSCREEN |

            WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);

        super.loadUrl("file:///android_asset/www/index.html";        

}

Also, I needed to add:

import android.view.WindowManager;

to the imports at the top.

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »