2

I'm trying to hide title bar in my app and I saw a lot of tutorials but none of them works, my app just crash immeditely. This is my manifest. When I change from @style/AppTheme to @android:style/Theme.NoTitleBar it crashes app on my mobile phone

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="hr.com.thetta.www.pleasurre" >

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar" >
        <activity
            android:name=".PleasurreMain"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-permission android:name="android.permission.INTERNET" />
</manifest>
Misko Mali
  • 617
  • 1
  • 7
  • 17

1 Answers1

3

If your are using the support library, you should use

Theme.AppCompat.NoActionBar

Instead of

Theme.NoActionBar
Marcus
  • 6,697
  • 11
  • 46
  • 89
  • 1
    Your answer and this helped me alot http://stackoverflow.com/questions/20653305/full-screen-theme-for-appcompact – Misko Mali Feb 09 '15 at 22:05