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

Mozart Liessi
Mozart Liessi
2,618 Points

I can't get rid of the action bar

my style file looks a bit different, and there is a mail button and I can't get rid of both

4 Answers

Jordan Ernst
Jordan Ernst
5,121 Points

show me your code if you are having issues and i will show you what you need to remove

Mozart Liessi
Mozart Liessi
2,618 Points
    <!-- 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>

    <style name="AppTheme.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

</resources>
Jordan Ernst
Jordan Ernst
5,121 Points

And your java files?

Mozart Liessi
Mozart Liessi
2,618 Points

I've solved the problem, when I create the file I didn't choose empty activity, that's why it was different, Thanks very much

Jordan Ernst
Jordan Ernst
5,121 Points

Okay just for future reference there would have been a method called floatingActionBar or tab and that is what was calling it on your xml