How To hide windows title bar in your android application
Perform following steps
In your style file (app\src\main\res\values\styles.xml) add following lines. This will create another theme with NotTitle
In your style file (app\src\main\res\values\styles.xml) add following lines. This will create another theme with NotTitle
<style name="FullscreenTheme" parent="AppTheme"> <item name="windowNoTitle">true</item> </style>
Apply newly created style/theme to your activity using application manifest file (app\src\main\AndroidManifest.xml) as shown in highlighted text
.....
<activity android:name=".MainMenu" android:theme="@style/FullscreenTheme" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>......
Comments
Post a Comment