0

I need to know how to put an activity in fullscreen, actually I have android 3.3. Thanks.

**This didn`t work = **

<style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>
</style>

<activity android:name=".ActivityName"
    android:label="@string/app_name"
    android:theme="@style/Theme.AppCompat.Light.NoActionBar.Fullscreen"/>
Taslim Oseni
  • 6,086
  • 10
  • 44
  • 69
Janzek
  • 37
  • 5

1 Answers1

0

Where is your main activity layout? It simply needs to have both width and height set to match parent in the parent layout.

The_Martian
  • 3,684
  • 5
  • 33
  • 61