[android-developers] Re: hiding the title bar
What if you want it only for one view (ie splash screens)? On Jan 14, 4:20 am, Dianne Hackborn hack...@android.com wrote: It is much better to just set android:theme in the manifest to the appropriate theme. For ex, android:theme=@android:type/Theme.NoTitleBar. On Tue, Jan 13, 2009 at 5:38 PM, srajpal sraj...@gmail.com wrote: putting the following before you set the content view will make the view fullscreen requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); On Dec 17 2008, 1:25 am, Eric Chan jude...@gmail.com wrote: Can you make me known which one is fullscreen? 2008/12/17 Dianne Hackborn hack...@android.com You could look at ApiDemos. On Tue, Dec 16, 2008 at 1:11 PM, Jason Proctor ja...@redfish.net wrote: This works fine, when called in onCreate() of an activity: getWindow().requestFeature(Window.FEATURE_NO_TITLE); Or, as Andrew Stadler pointed out, you can use this in your activity in your manifest: android:theme=@android:style/Theme.NoTitleBar Note that these remove the title bar. They do not remove the status bar (where the signal strength and battery level indicators lie). thanks for the response. is there a way to go really fullscreen? the reason i ask is that on the G1, the camera preview is always the wrong orientation. in portrait, the preview appears landscape, and vice versa. in order to incorporate this rather inconvenient feature seamlessly into my app, i have the preview activity go into landscape mode, which gives the effect of a preview at the same orientation. unfortunately the presence of the bars ruins the illusion. thanks for any help with this, j -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Best Regards Eric Chan -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: hiding the title bar
Unfortunately you can't currently hide and show the status bar dynamically. On Mon, Jan 19, 2009 at 11:17 AM, slind...@gmail.com slind...@gmail.comwrote: What if you want it only for one view (ie splash screens)? On Jan 14, 4:20 am, Dianne Hackborn hack...@android.com wrote: It is much better to just set android:theme in the manifest to the appropriate theme. For ex, android:theme=@android:type/Theme.NoTitleBar. On Tue, Jan 13, 2009 at 5:38 PM, srajpal sraj...@gmail.com wrote: putting the following before you set the content view will make the view fullscreen requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); On Dec 17 2008, 1:25 am, Eric Chan jude...@gmail.com wrote: Can you make me known which one is fullscreen? 2008/12/17 Dianne Hackborn hack...@android.com You could look at ApiDemos. On Tue, Dec 16, 2008 at 1:11 PM, Jason Proctor ja...@redfish.net wrote: This works fine, when called in onCreate() of an activity: getWindow().requestFeature(Window.FEATURE_NO_TITLE); Or, as Andrew Stadler pointed out, you can use this in your activity in your manifest: android:theme=@android:style/Theme.NoTitleBar Note that these remove the title bar. They do not remove the status bar (where the signal strength and battery level indicators lie). thanks for the response. is there a way to go really fullscreen? the reason i ask is that on the G1, the camera preview is always the wrong orientation. in portrait, the preview appears landscape, and vice versa. in order to incorporate this rather inconvenient feature seamlessly into my app, i have the preview activity go into landscape mode, which gives the effect of a preview at the same orientation. unfortunately the presence of the bars ruins the illusion. thanks for any help with this, j -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Best Regards Eric Chan -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: hiding the title bar
Try this, works for me, hiding (called on Activity): getWindow().addFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN); showing (called on Activity): getWindow().clearFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN); Michael On Jan 19, 3:19 pm, Dianne Hackborn hack...@android.com wrote: Unfortunately you can't currently hide and show the status bar dynamically. --~--~-~--~~~---~--~~ 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: hiding the title bar
It is much better to just set android:theme in the manifest to the appropriate theme. For ex, android:theme=@android:type/Theme.NoTitleBar. On Tue, Jan 13, 2009 at 5:38 PM, srajpal sraj...@gmail.com wrote: putting the following before you set the content view will make the view fullscreen requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); On Dec 17 2008, 1:25 am, Eric Chan jude...@gmail.com wrote: Can you make me known which one is fullscreen? 2008/12/17 Dianne Hackborn hack...@android.com You could look at ApiDemos. On Tue, Dec 16, 2008 at 1:11 PM, Jason Proctor ja...@redfish.net wrote: This works fine, when called in onCreate() of an activity: getWindow().requestFeature(Window.FEATURE_NO_TITLE); Or, as Andrew Stadler pointed out, you can use this in your activity in your manifest: android:theme=@android:style/Theme.NoTitleBar Note that these remove the title bar. They do not remove the status bar (where the signal strength and battery level indicators lie). thanks for the response. is there a way to go really fullscreen? the reason i ask is that on the G1, the camera preview is always the wrong orientation. in portrait, the preview appears landscape, and vice versa. in order to incorporate this rather inconvenient feature seamlessly into my app, i have the preview activity go into landscape mode, which gives the effect of a preview at the same orientation. unfortunately the presence of the bars ruins the illusion. thanks for any help with this, j -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Best Regards Eric Chan -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: hiding the title bar
You could look at ApiDemos. On Tue, Dec 16, 2008 at 1:11 PM, Jason Proctor ja...@redfish.net wrote: This works fine, when called in onCreate() of an activity: getWindow().requestFeature(Window.FEATURE_NO_TITLE); Or, as Andrew Stadler pointed out, you can use this in your activity in your manifest: android:theme=@android:style/Theme.NoTitleBar Note that these remove the title bar. They do not remove the status bar (where the signal strength and battery level indicators lie). thanks for the response. is there a way to go really fullscreen? the reason i ask is that on the G1, the camera preview is always the wrong orientation. in portrait, the preview appears landscape, and vice versa. in order to incorporate this rather inconvenient feature seamlessly into my app, i have the preview activity go into landscape mode, which gives the effect of a preview at the same orientation. unfortunately the presence of the bars ruins the illusion. thanks for any help with this, j -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: hiding the title bar
Can you make me known which one is fullscreen? 2008/12/17 Dianne Hackborn hack...@android.com You could look at ApiDemos. On Tue, Dec 16, 2008 at 1:11 PM, Jason Proctor ja...@redfish.net wrote: This works fine, when called in onCreate() of an activity: getWindow().requestFeature(Window.FEATURE_NO_TITLE); Or, as Andrew Stadler pointed out, you can use this in your activity in your manifest: android:theme=@android:style/Theme.NoTitleBar Note that these remove the title bar. They do not remove the status bar (where the signal strength and battery level indicators lie). thanks for the response. is there a way to go really fullscreen? the reason i ask is that on the G1, the camera preview is always the wrong orientation. in portrait, the preview appears landscape, and vice versa. in order to incorporate this rather inconvenient feature seamlessly into my app, i have the preview activity go into landscape mode, which gives the effect of a preview at the same orientation. unfortunately the presence of the bars ruins the illusion. thanks for any help with this, j -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Best Regards Eric Chan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---