android studio 3.3在创建新项目后未在其预览窗口中显示操作栏和状态栏。我已经在build.graadle(module:app)文件(implementation'com.android.support:appcompat-v7:28.0)中尝试了此操作.0-alpha1')
答案 0 :(得分:7)
答案 1 :(得分:0)
<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>
在您的styles.xml中尝试