Full Screen in customize theme

panda picture panda · Mar 25, 2012 · Viewed 41.2k times · Source

I need my app to show as full screen. Now I know how to add this feature into the application tag in Mainfest using

android:theme=”@android:style/Theme.NoTitleBar.Fullscreen"

However, I have my own theme called "CodeFont", and I cannot use two themes in the same application. How I can add this feature into my own style tag in my resources file? There is no such things as an android:style tag.

Answer

RajaReddy PolamReddy picture RajaReddy PolamReddy · Mar 25, 2012

Create your custom theme by using default theme, like this

window with Fullscreen

<style name="generalnotitle" parent="general">
    <item name="android:windowFullscreen">true</item>
</style>

window with NoTitle

<style name="generalnotitle" parent="general">
    <item name="android:windowNoTitle">true</item>
</style>