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 Using EditText for Text Input

Where top menu bar can be switched on and off?

There is top menu bar in the video example, but on my app there is no. Where can I switch it on or off?

1 Answer

Damien Watson
Damien Watson
27,419 Points

Hi Artem,

When on the Design tab of an xml file, the status of the Menu bar for the 'preview' is set by the drop downs directly above it. The buttons from left to right are:

  • Configuration
  • Virtual device
  • Next state (rotation)
  • App theme <---- this is the one you want to click on
  • etc..

This only affects the preview, so choose a theme that includes the nav bar like:

Material Light > Material.Light.DarkActionBar

Nav bar should now show. Hope this helps :)

Thank you very much, that's exactly what I was looking for :)