Android Build a Simple Android App Creating the Screen Layout Setting a Fullscreen Theme

can't get rid of Actionbar

This is my code in Style.xml: <resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

</resources>

Grigorij Schleifer
Grigorij Schleifer
10,356 Points

Hi Mazen,

what do you have inside the AndroidManifest.xml?

This is what I have:

<application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

Grigorij

Hi Grigorij It worked, the problem was with inside layout pallet, it was showing the Action bar despite that i removed it, but when i run the app, it doesnt show the action bar, so I hit the theme button above the pallet and chose : NoActionBar. it worked.

thanks