Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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