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 Weather App (2015) Building the Weather UI Starting at the Center

Stephen Little
Stephen Little
8,312 Points

action 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
PLUS
Jon Kussmann
Courses Plus Student 7,254 Points

Yeah.... 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.

Stephen Little
Stephen Little
8,312 Points

Ok that worked but I hope there will be a fix for this later on :)

cheers! Stephen

Joe Goodall
Joe Goodall
3,483 Points

I'm having the same issue. Would be good to know why this is and how to resolve it?

In 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