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:
- No
ActionBar
visible
- Change a setting for Show Layout Decorations (By Default it is unchecked, just check it and ActionBar will be there)
- Visible
ActionBar
回答2:
Select the theme from above which have action bar by clicking where AppTheme is written in top pane of preview window.