I used this two lines of code to remove the title bar right after
calling super.OnCreated and never experienced problems in 1.6 or 2.0
(emul):
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags
(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
Thanks,
Philip
On Jan 14, 2:50 pm, Matt Hall <[email protected]> wrote:
> Our problem is occurring on a devices running both 1.6 and 2.0
> (haven't tried it on others). We've got a pretty complicated view
> system though so it still could definitely be our fault, the end
> result is exactly what's in the screenshot Marc posted though.
>
> On Jan 14, 5:20 pm, Nerdrow <[email protected]> wrote:
>
>
>
> > I just tried this on a Droid w/2.0.1 and don't have any issues. Is
> > this happening in the emulator or on an actual device?
>
> > On Jan 14, 2:09 pm, Matt Hall <[email protected]> wrote:
>
> > > I am having the same problem - did you ever figure out a resolution to
> > > this? Or did you file a bug? Seems like a bug since you can reproduce
> > > it with this example you've provided.
>
> > > Thanks,
> > > Matt
>
> > > On Jan 7, 8:36 am, Marc Reichelt <[email protected]> wrote:
>
> > > > Hi there!
>
> > > > I am using the fullscreen mode in my application and noticed a small,
> > > > but very annoying bug. After hours of testing I tracked it down to a
> > > > very simple piece of code (see below).
>
> > > > This is how the UI looks like after running
> > > > it:http://i47.tinypic.com/2jfac6v.png
>
> > > > The problem: As soon as the button is selected, a header in the size
> > > > of thestatusbarwill appear and all views will be scrolled down by
> > > > the appropriate height.
>
> > > > My code looks like this:
>
> > > > -----snip-----
>
> > > > package com.example.android.test;
>
> > > > import android.app.Activity;
> > > > import android.os.Bundle;
> > > > import android.view.Window;
> > > > import android.view.WindowManager;
> > > > import android.widget.Button;
> > > > import android.widget.LinearLayout;
>
> > > > public class FullscreenTest extends Activity {
>
> > > > @Override
> > > > protected void onCreate(Bundle savedInstanceState) {
> > > > super.onCreate(savedInstanceState);
>
> > > > // set background color to white to see what is going on
> > > >
> > > > getWindow().setBackgroundDrawableResource(android.R.color.white);
>
> > > > // hide title andstatusbar
> > > > getWindow().requestFeature(Window.FEATURE_NO_TITLE);
> > > > this.getWindow().setFlags
> > > > (WindowManager.LayoutParams.FLAG_FULLSCREEN,
> > > > WindowManager.LayoutParams.FLAG_FULLSCREEN );
>
> > > > // create a simplelayoutwith a button
> > > > LinearLayout contentView = new LinearLayout(this);
>
> > > > Button button = new Button(this);
> > > > button.setText("Look above! WTF?");
>
> > > > contentView.addView(button);
>
> > > > setContentView(contentView);
> > > > }
>
> > > > }
>
> > > > -----snap-----
>
> > > > The problem does not occur if thestatusbaror the titlebaris
> > > > shown. As far as I tested, all SDK versions 1.5, 1.6 and 2.0.1 are
> > > > affected.
>
> > > > Can anyone verify this problem? Is this fixed in feature versions of
> > > > the Android SDK (e.g. 2.1)?
>
> > > > Thanks in advance & regards
>
> > > > Marc Reichelt || http://www.marcreichelt.de/
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en