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
Michael Arsenault
15,352 PointsNew Android Studio version does not show action bar?
The Android Studio (AS) used for this tutorial (V 1.0, I think) does not show the action bar in the preview, even though it is there when running in the emulator.
The default theme in the "styles.xml" file is "Theme.AppCompat.Light.DarkActionBar".
Changing the theme to "android:Theme.Holo.Light.NoActionBar" will show the action bar in the preview in AS, but cause the app to crash when running it in any emulator (either the AS one or Genymotion).
Can I have my cake AND eat it too? I'd like to see the action bar in the preview, so that I can properly gage the layout without having to run the emulator. But, obviously I'd like it to run in the emulator without crashing.