No ActionBar and no StatusBar in android studio 3.

2019-03-05 04:47发布

问题:

In the below image you can see that there is no ActionBar and StatusBar in the preview of any XML layout file, if anyone is facing the same issue and has solution please post it.

回答1:

I faced the same issue, and got this:

  1. No ActionBar visible

  1. Change a setting for Show Layout Decorations (By Default it is unchecked, just check it and ActionBar will be there)

  1. Visible ActionBar



回答2:

Select the theme from above which have action bar by clicking where AppTheme is written in top pane of preview window.