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 an Interactive Story App (Retired) User Input Introducing ImageViews

Javier Alvarado
Javier Alvarado
16,060 Points

How can I get Action Bar to show up automatically?

When I created my project, there was no Action Bar. I fixed this by going into the design view of the MainActivity.xml file and changing the app theme. How can I get the Action Bar to appear automatically so I don't have to change the theme manually? It appears to show up automatically in the video. Also, is there another way to change the theme than the way I described above? I'd like to know if I'm making the proper changes. I checked the Android Developers site and they had some instructions that didn't make sense to me.

1 Answer

Harry James
Harry James
14,780 Points

Hey Javier!

Once we set the theme that we want to use, that will be saved so you don't have to set it up each time. This is the correct way to do it however, what you probably read was this article in the Android Documentation about the Action Bar - this shows how to add the action bar for older versions of Android that don't support the latest features (You use a compatibility library here which just allows the use of newer SDK features on older SDK versions).

Hope it helps and if you have any more questions, give me a shout :)