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

Not able to hide actionbar

When I change the code in Styles.XML from .......darkactionbar to .........noactionbar eveything happens as in the tutorial but then action bar doesn't change although I cleaned and rebuild the project, and even closed the AS and reloaded it. What is the problem here?

never have this problem but sounds like sdk problem to me try to re install sdk.

Is the actionbar not going away on the emulator/device or just in the preview?

1 Answer

Does your style.xml file look like this:

<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
</style>

</resources>