What if you want it only for one view (ie splash screens)?

On Jan 14, 4:20 am, "Dianne Hackborn" <[email protected]> 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 <[email protected]> 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" <[email protected]> wrote:
> > > Can you make me known which one is fullscreen?
>
> > > 2008/12/17 Dianne Hackborn <[email protected]>
>
> > > > You could look at ApiDemos.
>
> > > > On Tue, Dec 16, 2008 at 1:11 PM, Jason Proctor <[email protected]>
> > 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
> > > > [email protected]
>
> > > > 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
> [email protected]
>
> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to