android studio 3.3 not showing action bar and status bar in its preview window after creating new project.i already tried this in build.graadle(module:app) file (implementation'com.android.support:appcompat-v7:28.0.0-alpha1')
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In the preview tab, click on the eye and select 'Show Layout Decorations'.
EDIT: Toolbar isn't showing because of my style settings - I used 'NoActionBar'. This should work for you, though.
回答2:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
Try this on your styles.xml