[android-developers] Re: hiding the title bar

2009-01-19 Thread kolby
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" wrote: > Unfor

[android-developers] Re: hiding the title bar

2009-01-19 Thread Dianne Hackborn
Unfortunately you can't currently hide and show the status bar dynamically. On Mon, Jan 19, 2009 at 11:17 AM, slind...@gmail.com wrote: > > What if you want it only for one view (ie splash screens)? > > On Jan 14, 4:20 am, "Dianne Hackborn" wrote: > > It is much better to just set android:theme

[android-developers] Re: hiding the title bar

2009-01-19 Thread slind...@gmail.com
What if you want it only for one view (ie splash screens)? On Jan 14, 4:20 am, "Dianne Hackborn" 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, sraj

[android-developers] Re: hiding the title bar

2009-01-13 Thread Dianne Hackborn
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 wrote: > > putting the following before you set the content view will make the > view fullscreen > > > requestWi

[android-developers] Re: hiding the title bar

2009-01-13 Thread srajpal
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" wrote: > Can

[android-developers] Re: hiding the title bar

2008-12-16 Thread Eric Chan
Can you make me known which one is fullscreen? 2008/12/17 Dianne Hackborn > You could look at ApiDemos. > > On Tue, Dec 16, 2008 at 1:11 PM, Jason Proctor wrote: > >> >> >This works fine, when called in onCreate() of an activity: >> > >> >getWindow().requestFeature(Window.FEATURE_NO_TITLE); >>

[android-developers] Re: hiding the title bar

2008-12-16 Thread Dianne Hackborn
You could look at ApiDemos. On Tue, Dec 16, 2008 at 1:11 PM, Jason Proctor 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 in > >your manifest: >

[android-developers] Re: hiding the title bar

2008-12-16 Thread Mark Murphy
> i'd like to hide the title bar, but it seems that the sample code -- > > requestWindowFeature (Window.FEATURE_NO_TITLE); > > -- doesn't do anything. is there a way that works? This works fine, when called in onCreate() of an activity: getWindow().requestFeature(Window.FEATURE_NO_TITLE); Or, a