I need to remove action bar/ title bar from all activities I am using. Currently I applied
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
in Manifest file under activity but this only removes above said from the main activity other activity remains the same. Any solution
Full code under activity :
<activity
android:name="com.dss.ms.MainActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen">
Full Manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dss.ms"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="12"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
>
<meta-data
android:name="com.google.android.gms.games.APP_ID"
android:value="@string/app_id" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="com.dss.ms.MainActivity"
android:label="@string/app_name"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.com.dss.ms.Single"
android:label="@string/title_activity_single" >
</activity>
<activity
android:name="com.dss.ms.Index"
android:label="@string/title_activity_index" >
</activity>
<activity
android:name="com.dss.ms.da"
android:label="@string/title_activity_players_2" >
</activity>
<activity
android:name="com.dss.ms.FullscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/title_activity_fullscreen"
android:theme="@style/FullscreenTheme" >
</activity>
<activity
android:name="com.dss.ms.Score"
android:label="@string/title_activity_score" >
</activity>
</application>
</manifest>
Final Edit ---
I got it worked, The problem arises when activity extends ActionBarActivity. I am attaching the reference. [ActionBarCompat: java.lang.IllegalStateException: You need to use a Theme.AppCompat
In my final code I am using :
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
under application in my Manifest file. Thank you.