[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?
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 mcreich...@googlemail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?
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 matt.h...@gmail.com 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 mcreich...@googlemail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?
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 matt.h...@gmail.com 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 troybe...@gmail.com 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 matt.h...@gmail.com 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 mcreich...@googlemail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?
I forgot to add that I am using a GLSurfaceView as the view attached to my activity. On Jan 14, 3:14 pm, Philip philip.dese...@gmail.com wrote: 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 matt.h...@gmail.com 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 troybe...@gmail.com 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 matt.h...@gmail.com 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 mcreich...@googlemail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Fullscreen (no title no status bar) - UI bug in Android?
Some more information, after reading this thread: http://groups.google.com/group/android-developers/browse_thread/thread/2de77043f32835aa/315d393bb8334db5 we came to the conclusion that it was because our top view can accept focus that is causing the problem (there does appear to be some weirdness in the platform's handling of this situation as well). In our case we didn't need to accept focus in that view so a call to setFocusable(false) fixed the problem. In the case where you want the top element to accept focus I'm not sure what the proper way to handle it is. I think also this is why your GLSurfaceView is working properly. On Jan 14, 6:19 pm, Philip philip.dese...@gmail.com wrote: I forgot to add that I am using a GLSurfaceView as the view attached to my activity. On Jan 14, 3:14 pm, Philip philip.dese...@gmail.com wrote: 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 matt.h...@gmail.com 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 troybe...@gmail.com 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 matt.h...@gmail.com 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 mcreich...@googlemail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en