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 trialStephen Little
8,312 Pointsaction bar still showing
I can not seem to get rid of the action bar at the top. It just stay grayish color with the word stormy in it. I went into the styles.xml file and changed it to this.
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
but it still doesn't seem get rid of it in design view. I run the app on my phone and it display's OK so I'm not sure what is going on.
Any thoughts would be great!! Stephen
3 Answers
Jon Kussmann
Courses Plus Student 7,254 PointsYeah.... this one is really annoying.
I've been able to get "rid" of it while using the AppTheme by changing the API level from 22 to 21 in the preview pane.
Joe Goodall
3,483 PointsI'm having the same issue. Would be good to know why this is and how to resolve it?
Daniel Benito
Courses Plus Student 161 PointsIn activity_main.xml, did you try removing the android.support.design.widget.AppBarLayout tag? (It should be around 10 lines of code).
Removing that from that file did indeed eliminate the action bar for me on Android Studio 1.5.1
Stephen Little
8,312 PointsStephen Little
8,312 PointsOk that worked but I hope there will be a fix for this later on :)
cheers! Stephen
Jon Kussmann
Courses Plus Student 7,254 PointsJon Kussmann
Courses Plus Student 7,254 PointsI certainly hope so as well. :P