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 trialVikzilla III
Courses Plus Student 4,365 PointsApp Themes
I don't understand how Ben's layout editor shows no action bar, but when he runs it the emulator shows an action bar.
When I set my app theme in the layout editor, it does not rid the action bar for me when I run the app. I need to go into res > styles.xml and type it in manually, for example:
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
Is this the correct way of accomplishing no action bar? Can it only be done with code in styles.xml?
1 Answer
Jacob Bergdahl
29,119 PointsYes, this is the correct way of doing it. If you set no ActionBar in the layout editor, you're only doing so for the layout preview, not the actual app itself.