android studio 3.3 not showing action bar and status bar in its preview window after creating new project

后端 未结 2 1257
执笔经年
执笔经年 2021-01-15 20:29

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 (implementat

相关标签:
2条回答
  • 2021-01-15 20:50
     <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

    0 讨论(0)
  • 2021-01-15 21:03

    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.

    0 讨论(0)
提交回复
热议问题