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 Blog Reader Android App Getting Data from the Web What To Do When the Network is Down

DarkActionBar not displaying

I noticed that my Dark action bar was not displaying. I am wondering how to fix this.

in styles I currently have this displayed: <style name="AppBaseTheme" parent="android:Theme.AppCompat.Holo.Light.DarkActionBar">

Were you able to fix this? Did you check both the /res/values/ and /res/values-v21/ directories?

Also, the code you tried to write isn't displaying.

2 Answers

No, it disappears after I change the Action bar in public class MainListActivity extends ListActivity

luke hartman
luke hartman
Courses Plus Student 7,304 Points

I encountered this also, seems to be a caveat of extending the ListActivity. Are you using android studio? I find the blank Activity preset extends an ActionBarActivity rather than an Activity, so when changing the extension from ActionBarActivity, to ListActivity it removes the action bar from the layout altogether... Some clarification on this issue from an Admin would be handy...

Did you try to Build Clean Project and then Build Make Project? Maybe when we were told to get rid of the action bar in the previous video you either never added it back or if you did and the change did not update?