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 trialKevin Nguyen
617 PointsDarkActionBar 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">
2 Answers
Kevin Nguyen
617 PointsNo, it disappears after I change the Action bar in public class MainListActivity extends ListActivity
luke hartman
Courses Plus Student 7,304 PointsI 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...
Davey Gardner
11,602 PointsDid 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?
Danial Goodwin
13,247 PointsDanial Goodwin
13,247 PointsWere 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.