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

16,177

Solution 1

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

<application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >

Solution 2

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

Solution 3

This is working for me:-

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.Black.NoTitleBar" >
Share:
16,177
Hardik Joshi
Author by

Hardik Joshi

Right now i am working as an Android Application Developer having 8+ years of experience. Contact Me: Mail: [email protected] Skype: hardik.joshi841 Proud to be INDIAN Some owsome Apps Join Me : http://androiddevelopmentworld.blogspot.in/

Updated on July 23, 2022

Comments

  • Hardik Joshi
    Hardik Joshi almost 2 years

    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.