Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I declare my activity in manifest file like following.

<activity 
        android:name=".SiteView" 
         android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        android:screenOrientation="landscape" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.HOME" />
            <category android:name="android.intent.category.DEFAULT" />

        </intent-filter>
    </activity>

I declare activity with Fullscreen theame. But its not working.

I also use second way for Fullscreen like following.

 requestWindowFeature(Window.FEATURE_NO_TITLE);

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

But no success. Please help me to find this.

like image 310
Hardik Joshi Avatar asked Nov 06 '12 06:11

Hardik Joshi


2 Answers

I solve it by using by declaring fullscreen theame at application level.

<application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
like image 119
Hardik Joshi Avatar answered Oct 13 '22 00:10

Hardik Joshi


Try to change theme into this: android:theme="@android:style/Theme.NoTitleBar"

like image 42
Artyom Kiriliyk Avatar answered Oct 13 '22 02:10

Artyom Kiriliyk