Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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